mcrypt_decrypt
(PHP 4 >= 4.0.2, PHP 5)
mcrypt_decrypt — Decrypts crypttext with given parameters
说明
string mcrypt_decrypt ( string $cipher , string $key , string $data , string $mode [, string $iv ] )Decrypts the data and returns the unencrypted data.
参数
- cipher
-
One of the MCRYPT_ciphername constants, or the name of the algorithm as string.
- key
-
The key with which the data was encrypted. If it's smaller than the required keysize, it is padded with '