[关闭]
@jzp113 2017-06-14T06:27:17.000000Z 字数 375 阅读 1036

中纪委app内容加密分析

api Android 逆向


  1. function decrypt($str){
  2. $len = strlen($str);
  3. $decrypt_str=array();
  4. for ($x=0; $x<$len; $x++) {
  5. $c = $str[$x];
  6. if ($c == 'A') {
  7. $c = 'Z';
  8. } else if ($c == 'a') {
  9. $c = 'z';
  10. } else if ($c == '0') {
  11. $c = '9';
  12. } else if (('A' < $c && $c <= 'Z') || (('a' < $c && $c <= 'z') || ('0' < $c && $c <= '9'))) {
  13. $c = chr(ord($c) - 1);
  14. }
  15. array_push($decrypt_str, $c);
  16. }
  17. $str_decrypt = base64_decode(implode("", $decrypt_str));
  18. return $str_decrypt;
  19. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注