password_algos
(PHP 7 >= 7.4.0)
password_algos — Get available password hashing algorithm IDs
説明
password_algos ( ) : array
Returns a complete list of all registered password hashing algorithm IDs as an array of strings.
パラメータ
この関数にはパラメータはありません。
返り値
Returns the available password hashing algorithm IDs.
例
例1 Basic password() usage
<?phpprint_r(password_algos());?>
上の例の出力は、 たとえば以下のようになります。
Array ( [0] => 2y [1] => argon2i [2] => argon2id )