©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PHP 5 >= 5.5.0)
openssl_pbkdf2 — Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1
$password
, string $salt
, int $key_length
, int $iterations
[, string $digest_algorithm
] )
本函数还未编写文档,仅有参数列表。
password
salt
key_length
iterations
digest_algorithm
Returns string 或者在失败时返回 FALSE
.
[#1] McGlockenshire [2014-03-20 08:10:27]
Despite the manual claiming that this is available in PHP 5.5 and above, this function wasn't made available in my local install.
I expect that having a prehistoric OpenSSL library version installed is the likely culprit.
If you're using PHP 5.5 and don't have this function available in your OpenSSL extension, look at the functionally equivalent hash_pbkdf2 function instead.