mcrypt_list_algorithms

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

mcrypt_list_algorithms — 지원되는 모든 암호의 배열을 가져옵니다.

경고 이 함수는 PHP 7.1.0에서 더 이상 사용되지 않으며 PHP 7.2.0에서 제거되었습니다. 이 함수에 의존하는 것은 매우 권장되지 않습니다.


설명

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

lib_dir 매개변수에서 지원되는 모든 알고리즘의 목록을 가져옵니다.


매개변수

lib_dir
모든 알고리즘이 있는 디렉토리를 지정합니다. 지정하지 않으면 mcrypt.algorithms_dir php.ini 지시자의 값이 사용됩니다.

반환 값

지원되는 모든 알고리즘이 포함된 배열을 반환합니다.


Examples

예제 #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
)