1
justanding 2017-06-01 22:01:13 +08:00
用 openssl_encrypt
|
2
eoo 2017-06-01 23:38:07 +08:00 via Android
官方手册
|
3
Vonex 2017-06-01 23:41:17 +08:00
hash('sha512','xxx')不好吗
|
4
kokutou 2017-06-02 01:30:13 +08:00 via Android
|
5
m939594960 2017-06-02 11:16:24 +08:00
|
6
chenney 2017-06-02 17:53:05 +08:00
null 改成 OPENSSL_ZERO_PADDING 试试
|
7
components 2017-06-02 22:56:48 +08:00
http://php.net/manual/en/migration71.deprecated.php
The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2. |
8
iyaozhen 2017-06-07 21:21:49 +08:00
但貌似有个问题 openssl_decrypt 不支持 PKCS5
|