(PHP 4 >= 4.0.2, PHP 5, PHP 7)
Encrypts plaintext with given parameters
string mcrypt_encrypt ( string $cipher, string $key, string $data, string $mode [, string $iv ] )
Encrypts the data and returns it.
Parameters:
cipher
One of the MCRYPT_ciphername constants, or the name of the algorithm as string.
key
The key with which the data wi