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

search for in the

mcrypt_list_modes> <mcrypt_get_key_size
[edit] Last updated: Fri, 17 May 2013

view this page in

mcrypt_list_algorithms

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_list_algorithmsObtiene un array con todos los cifradores soportados

Descripción

array mcrypt_list_algorithms ([ string $lib_dir = ini_get("mcrypt.algorithms_dir") ] )

Obtiene una lista de todos los algoritmos soportados en el parámetro lib_dir.

Parámetros

lib_dir

Especifica el directorio donde todos los algoritmos están ubicados. Si no se especifica, se utiliza el valor de la directiva mcrypt.algorithms_dir del fichero php.ini.

Valores devueltos

Devuelve un array con todos los algoritmos soportados.

Ejemplos

Ejemplo #1 Ejemplo de mcrypt_list_algorithms()

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

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

El ejemplo anterior produrirá una lista con todos los algoritmos soportados en el directorio "/usr/local/lib/libmcrypt".



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

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