Home > PHP > Function > Mcrypt > mcrypt_generic_deinit()

mcrypt_generic_deinit()

mcrypt_generic_deinit - This function deinitializes an encryption module

Syntax

bool mcrypt_generic_deinit (resource $td)

Arguments

  • td - The encryption descriptor.

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() yourself. (But PHP does this for you at the end of the script.)

Version

PHP 4.0.7, 5

Return value

Returns TRUE on success or FALSE on failure.