mcrypt_module_self_test
mcrypt_module_self_test
This function runs a self test on the specified module
bool **mcrypt_module_self_test** string $algorithm string $lib_dir
This function runs the self test on the algorithm specified.
algorithm``lib_dir
The optional parameter can contain the
location where the algorithm module is on the system.
lib_dir
The function returns true if the self test succeeds, or false when it fails.
Voorbeeld: example
<?php
var_dump(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128)) . "\n";
var_dump(mcrypt_module_self_test(MCRYPT_BOGUS_CYPHER));
?>
bool(true)
bool(false)