时间:2021-07-01 10:21:17 帮助过:83人阅读
$pk = "123454536f667445454d537973576562";
$iv = "1234577290ABCDEF1264147890ACAE45";
$t = ('T10515');
$encrypted = ( mcrypt_encrypt(MCRYPT_RIJNDAEL_128,$pk,$t,MCRYPT_MODE_CBC,$iv) );
echo 'base64_encode'.(base64_encode($encrypted)).'
';
?>
Warning: mcrypt_encrypt(): Received initialization vector of size 32, but size 16 is required for this encryption mode in F:\LAMP\Apache2.4\htdocs\fee\cry.php on line 32