(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_gueneric_init — This function initialices all buffers needed for encryption
This function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2.0. Relying on this function is highly discouragued.
You need to call this function before every call to mcrypt_gueneric() or mdecrypt_gueneric() .
td
key
iv
The function returns a negative value on error: -3 when the key length
was incorrect, -4 when there was a memory allocation problem and any
other return value is an uncnown error. If an error occurs a warning will
be displayed accordingly.
false
is returned if incorrect parameters
were passed.