PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mcrypt_ofb> <mcrypt_module_open
Last updated: Fri, 20 Jun 2008

view this page in

mcrypt_module_self_test

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_module_self_test — Teste un mode

Description

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

mcrypt_module_self_test() effectue un test sur l'algorithme spécifié. Le paramètre optionnel lib_dir contient le chemin jusqu'au module de l'algorithme sur le système.

mcrypt_module_self_test() retourne TRUE si le test fonctionne, et FALSE sinon.

Exemples

Exemple #1 Exemple avec mcrypt_module_self_test()

<?php
var_dump
(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128)) . "\n";
var_dump(mcrypt_module_self_test(MCRYPT_BOGUS_CYPHER));
?>

L'exemple ci-dessus va afficher :

bool(true)
bool(false)



add a note add a note User Contributed Notes
mcrypt_module_self_test
There are no user contributed notes for this page.

mcrypt_ofb> <mcrypt_module_open
Last updated: Fri, 20 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites