mcrypt_list_algorithms

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

mcrypt_list_algorithms锟斤拷取支锟街的硷拷锟斤拷锟姐法

Warning

This function has been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.

说锟斤拷

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

锟斤拷取 lib_dir 锟斤拷 锟斤拷锟斤拷锟斤拷锟斤拷支锟街碉拷锟姐法锟斤拷

锟斤拷锟斤拷

lib_dir

指锟斤拷锟姐法锟斤拷锟节碉拷位锟矫★拷 锟斤拷锟轿粗革拷锟斤拷锟斤拷锟绞癸拷锟� php.ini 锟叫碉拷 mcrypt.algorithms_dir 指示锟斤拷指锟斤拷锟斤拷位锟矫★拷

锟斤拷锟斤拷值

锟斤拷锟斤拷锟介方式锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷支锟街碉拷锟姐法锟斤拷

锟斤拷锟斤拷

Example #1 mcrypt_list_algorithms() 锟斤拷锟斤拷

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

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

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
)