Home » » mcrypt_list_algorithms

mcrypt_list_algorithms

Written By 1 on Monday, October 1, 2012 | 6:19 PM

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

Gets an array of all supported ciphers

Gets the list of all supported algorithms in the lib_dir parameter.


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

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


0 Comment:

Post a Comment