password_algos

(PHP 7 >= 7.4.0)

password_algosGet available password hashing algorithm IDs

Beschreibung

password_algos ( ) : array

Returns a complete list of all registered password hashing algorithm IDs as an array of strings.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the available password hashing algorithm IDs.

Beispiele

Beispiel #1 Basic password() usage

<?php
print_r
(password_algos());
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Array
(
    [0] => 2y
    [1] => argon2i
    [2] => argon2id
)