略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: password_algos

2025-02-27

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
)
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/function.password-algos.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3