(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)
mcrypt_module_self_test — Prueba un modo
Esta función está OBSOLETA a partir de PHP 7.1.0 y ha sido ELIMINADA a partir de PHP 7.2.0. Depender de esta función está fuertemente desaconsejado.
Realiza una prueba sobre el algoritmo especificado.
algorithm
One of the MCRYPT_ciphername
constants, or the name of the algorithm as string.
lib_dir
El argumento opcional lib_dir
contiene
la ruta de acceso hasta el módulo del algoritmo en el sistema.
Ejemplo #1 Ejemplo con mcrypt_module_self_test()
<?php
var_dump(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128)) . "\n";
var_dump(mcrypt_module_self_test(MCRYPT_BOGUS_CYPHER));
?>
El ejemplo anterior mostrará :
bool(true) bool(false)