Home > PHP > Function > Mcrypt > mcrypt_module_open()

mcrypt_module_open()

mcrypt_module_open - Opens the module of the algorithm and the mode to be used

Syntax

resource mcrypt_module_open ()

Arguments

-

Description

This function opens the module of the algorithm and the mode to be used. The name of the algorithm is specified in algorithm, e.g. "twofish"or is one of the MCRYPT_ciphername constants. The module is closed by calling mcrypt_module_close().

Version

PHP 4.0.2, 5

Return value

Normally it returns an encryption descriptor, or FALSE on error.