Dutch PHP Conference 2025 - Call For Papers

password_algos

(PHP 7 >= 7.4.0, PHP 8)

password_algosGet 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_algos() usage

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

Поданий вище приклад виведе щось схоже на:

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

User Contributed Notes

There are no user contributed notes for this page.
To Top