Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php function rotencode($string, $amount) { $key = substr($string, 0, 1); if (s..
Decoded Output download
<?php function rotencode($string, $amount) {
$key = substr($string, 0, 1);
if (strlen($string) == 1) {
return chr(ord($key) + $amount);
} else {
return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
}
}
if (!function_exists("rotencode")) {
function rotencode($string, $amount) {
$key = substr($string, 0, 1);
if (strlen($string) == 1) {
return chr(ord($key) + $amount);
} else {
return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
}
}
} ?>
Did this file decode correctly?
Original Code
<?php function rotencode($string, $amount) {
$key = substr($string, 0, 1);
if (strlen($string) == 1) {
return chr(ord($key) + $amount);
} else {
return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
}
}
if (!function_exists("rotencode")) {
function rotencode($string, $amount) {
$key = substr($string, 0, 1);
if (strlen($string) == 1) {
return chr(ord($key) + $amount);
} else {
return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string) - 1), $amount);
}
}
}
Function Calls
function_exists | 1 |
Stats
MD5 | eded6d20c674ad7e0b9731ea32da7b3c |
Eval Count | 0 |
Decode Time | 96 ms |