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 base64url_encode($data) { return rtrim(strtr(base64_encode($data), '+/'..
Decoded Output download
<?php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function base64url_decode($data) {
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}
function x($k, $p){
$c = "";
$l = strlen($k);
$pl = strlen($p);
for($i = 0; $i < $pl; $i++) {
$c .= $k[$i % $l] ^ $p[$i];
}
return $c;
} ?>
Did this file decode correctly?
Original Code
<?php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
function base64url_decode($data) {
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
}
function x($k, $p){
$c = "";
$l = strlen($k);
$pl = strlen($p);
for($i = 0; $i < $pl; $i++) {
$c .= $k[$i % $l] ^ $p[$i];
}
return $c;
}
Function Calls
None |
Stats
MD5 | e55df608bc630a495b98fd3f728fc5bd |
Eval Count | 0 |
Decode Time | 49 ms |