PHP.nl

password_algos

password_algos

Get available password hashing algorithm IDs

array **password_algos**

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

Returns the available password hashing algorithm IDs.

Voorbeeld: Basic usage

<?php
print_r(password_algos());
?>
Array
(
    [0] => 2y
    [1] => argon2i
    [2] => argon2id
)