<?PHP
function decoderbs($input) {
$input = explode(',', $input);
foreach($input as $p) {
$n .= chr($p);
}
return $n;
}
?>
<script>
function changeit(value) {
var ret = "";
var i = 0;
while(i < value.length) {
ret += value.charCodeAt(i) + ",";
i++;
}
}
</script>
Could come in handy if you are encrypting in Javascript and decrypting in PHP but of course if the user could see this it probably isnt too safe. If you really wanted to use it publically - you could just copy the value into a hidden field instead of displaying it like I am doing. But like I said im doing this for my admin panel im not too worried about myself xssing it lol


Sign In
Create Account



Back to top









