mcrypt_module_self_test

PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0
mcrypt_module_self_test - This function runs a self test on the specified module
Manual
Code Examples

mcrypt_module_self_test( string$algorithm, [string$lib_dir] ): bool

This function runs the self test on the algorithm specified.

Parameters

algorithm

One of the MCRYPT_ciphername constants, or the name of the algorithm as string.

lib_dir

The optional lib_dir parameter can contain the location where the algorithm module is on the system.

Return Values

The function returns true if the self test succeeds, or false when it fails.

Example of mcrypt_module_self_test

Show all examples for mcrypt_module_self_test

PHP Version: