mcrypt_list_algorithms

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_list_algorithmsGets an array of all supported ciphers

Avertizare

Această funcție a fost ÎNVECHITĂ începând cu PHP 7.1.0 și ELIMINATĂ începând cu PHP 7.2.0. Utilizarea acestei funcții este foarte nerecomandată.

Descrierea

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

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

Parametri

lib_dir

Specifies the directory where all algorithms are located. If not specified, the value of the mcrypt.algorithms_dir php.ini directive is used.

Valorile întoarse

Returns an array with all the supported algorithms.

Exemple

Example #1 mcrypt_list_algorithms() Example

<?php
$algorithms 
mcrypt_list_algorithms();
print_r($algorithms);
?>

Exemplul de mai sus va afișa ceva similar cu:

Array
(
    [0] => cast-128
    [1] => gost
    [2] => rijndael-128
    [3] => twofish
    [4] => arcfour
    [5] => cast-256
    [6] => loki97
    [7] => rijndael-192
    [8] => saferplus
    [9] => wake
    [10] => blowfish-compat
    [11] => des
    [12] => rijndael-256
    [13] => serpent
    [14] => xtea
    [15] => blowfish
    [16] => enigma
    [17] => rc2
    [18] => tripledes
)

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top