2018年3月22日

PHP DES加密解密

摘要: 使用方法: //加密: $result = json_encode($data); $result = DES::encrypt($result, $key); print_r($result); //解密: $result = DES::decrypt($result, $key); print_ 阅读全文

posted @ 2018-03-22 11:51 loveking_阳 阅读(232) 评论(0) 推荐(0) 编辑

PHP AES128加密解密

摘要: 使用方式如下: /****中文取消汉字编码*/protected function decodeUnicode($str){ return preg_replace_callback('/\\\\u([0-9a-f]{4})/i', create_function( '$matches', 'ret 阅读全文

posted @ 2018-03-22 11:49 loveking_阳 阅读(2600) 评论(0) 推荐(0) 编辑

导航