@jzp113
2017-06-14T06:27:17.000000Z
字数 375
阅读 1114
api
Android
逆向
function decrypt($str){
$len = strlen($str);
$decrypt_str=array();
for ($x=0; $x<$len; $x++) {
$c = $str[$x];
if ($c == 'A') {
$c = 'Z';
} else if ($c == 'a') {
$c = 'z';
} else if ($c == '0') {
$c = '9';
} else if (('A' < $c && $c <= 'Z') || (('a' < $c && $c <= 'z') || ('0' < $c && $c <= '9'))) {
$c = chr(ord($c) - 1);
}
array_push($decrypt_str, $c);
}
$str_decrypt = base64_decode(implode("", $decrypt_str));
return $str_decrypt;
}