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

search for in the

mcrypt_list_modes> <mcrypt_get_key_size
Last updated: Fri, 20 Jun 2008

view this page in

mcrypt_list_algorithms

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_list_algorithms — Liste tous les algorithmes de chiffrement supportés

Description

array mcrypt_list_algorithms ([ string $lib_dir ] )

mcrypt_list_algorithms() sert à lister tous les algorithmes de chiffrement de lib_dir .

mcrypt_list_algorithms() prend un argument optionnel, qui spécifie le dossier qui contient tous les algorithmes. S'il est omis, la valeur de mcrypt.algorithms_dir dans php.ini est utilisée.

Exemples

Exemple #1 Exemple avec mcrypt_list_algorithms()

<?php
$algorithms 
mcrypt_list_algorithms("/usr/local/lib/libmcrypt");

foreach (
$algorithms as $cipher) {
    echo 
"$cipher<br />\n";
}
?>

L'exemple ci-dessus va afficher tous les algorithmes supportés dans le dossier "/usr/local/lib/libmcrypt".



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

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