1 | class ApiCrypter{ |
1 | public function encrypt($str) { |
1 | public function decrypt($code) { |
1 |
|
1 | protected function pkcs5_pad ($text) { |
1 | protected function pkcs5_unpad($text) { |
1 | package com.cwilldev.crypt; |
1 | public class ApiCrypter { |
1 | public ApiCrypter() |
1 | public byte[] encrypt(String text) throws Exception |
1 |
|
1 | public static String bytesToHex(byte[] data) |
1 | public static byte[] hexToBytes(String str) { |
1 | $original_text = 'test'; |
本文链接:
https://dragonersli.github.io/2016/07/02/Android移动端与PHP服务端对称加密解密的实现-!/
本人声明: 此文只作为自己日后工作学习中遇到类似问题方便快速回忆解决问题的笔记,仅供参考!
版权声明:
本文首发于
すせなの筆記
转载无需联系本人,但要注明来源本站!
本人声明: 此文只作为自己日后工作学习中遇到类似问题方便快速回忆解决问题的笔记,仅供参考!
版权声明:
