mcrypt_generic_deinit(3) [php man page]
MCRYPT_GENERIC_DEINIT(3) 1 MCRYPT_GENERIC_DEINIT(3) mcrypt_generic_deinit - This function deinitializes an encryption module SYNOPSIS
bool mcrypt_generic_deinit (resource $td) DESCRIPTION
This function terminates encryption specified by the encryption descriptor ($td). It clears all buffers, but does not close the module. You need to call mcrypt_module_close(3) yourself. (But PHP does this for you at the end of the script.) PARAMETERS
o $td - The encryption descriptor. RETURN VALUES
Returns TRUE on success or FALSE on failure. SEE ALSO
mcrypt_module_open(3), mcrypt_generic_init(3). PHP Documentation Group MCRYPT_GENERIC_DEINIT(3)
Check Out this Related Man Page
MCRYPT_GENERIC(3) 1 MCRYPT_GENERIC(3) mcrypt_generic - This function encrypts data SYNOPSIS
string mcrypt_generic (resource $td, string $data) DESCRIPTION
This function encrypts data. The data is padded with " " to make sure the length of the data is n * blocksize. This function returns the encrypted data. Note that the length of the returned string can in fact be longer than the input, due to the padding of the data. If you want to store the encrypted data in a database make sure to store the entire string as returned by mcrypt_generic, or the string will not entirely decrypt properly. If your original string is 10 characters long and the block size is 8 (use mcrypt_enc_get_block_size(3) to determine the blocksize), you would need at least 16 characters in your database field. Note the string returned by mdecrypt_generic(3) will be 16 characters as well...use rtrim($str, "