MAX_IV_SIZE
MAX_IV_SIZE
PhalApi_Crypt_Mcrypt 原始mcrypt加密
使用mcrypt扩展进加解密
使用示例:
$mcrypt = new PhalApi_Crypt_Mcrypt('12345678');
$data = 'dogstar love php';
$key = 'secrect';
// 加密
$encryptData = $mcrypt->encrypt($data, $key);
// 解密
$decryptData = $mcrypt->decrypt($encryptData, $key);