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

search for in the

mcrypt_ofb> <mcrypt_module_open
[edit] Last updated: Fri, 14 Jun 2013

view this page in

mcrypt_module_self_test

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_module_self_testTeste un mode

Description

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

Effectue un test sur l'algorithme spécifié.

Liste de paramètres

algorithm

Une constante parmi les constantes MCRYPT_ciphername, ou le nom de l'algorithme, sous la forme d'une chaîne de caractères.

lib_dir

Le paramètre optionnel lib_dir contient le chemin jusqu'au module de l'algorithme sur le système.

Valeurs de retour

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 - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites