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