08
2022
12

PHP加密与解密

撒盐加密/解密/* *功能:对字符串进行加密处理 *参数一:需要加密的内容 *参数二:密钥 */ function passport_encrypt($str, $key) { //加密函数     srand((double)microtime() * 1000000);     $encrypt_key = md5(rand(0