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 custom_decode($value) { $decrypted = ''; for ($i = 0; $i < strle..
Decoded Output download
<?php
function custom_decode($value) {
$decrypted = '';
for ($i = 0; $i < strlen($value); $i += 2) {
$char = chr(hexdec(base_convert(strrev(substr($value, $i, 2)), 36, 16)));
$decrypted .= $char;
}
return $decrypted;
}
$encoded_url = 'g416t4x563r2t254a4z2n234u25424a4v254d414h4e4q5z374w5p4u2j5l4o5t2x5h4j4';
$decoded_url = custom_decode($encoded_url);
echo $decoded_url;
?>
Did this file decode correctly?
Original Code
<?php
function custom_decode($value) {
$decrypted = '';
for ($i = 0; $i < strlen($value); $i += 2) {
$char = chr(hexdec(base_convert(strrev(substr($value, $i, 2)), 36, 16)));
$decrypted .= $char;
}
return $decrypted;
}
$encoded_url = 'g416t4x563r2t254a4z2n234u25424a4v254d414h4e4q5z374w5p4u2j5l4o5t2x5h4j4';
$decoded_url = custom_decode($encoded_url);
echo $decoded_url;
?>
Function Calls
strlen | 1 |
strrev | 1 |
substr | 1 |
base_convert | 1 |
custom_decode | 1 |
Stats
MD5 | db9154f601acff15f018dc148beea6e2 |
Eval Count | 0 |
Decode Time | 59 ms |