hash_pbkdf2Generate a PBKDF2 key derivation of a supplied password Description
string hash_pbkdf2
( string
$algo
, string $password
, string $salt
, int $iterations
[, int $length = 0
[, bool $raw_output = false
]] )Parameters
Return Values
Returns a string containing the derived key as lowercase hexits unless
Errors/Exceptions
An Changelog
Examples
Example #1 hash_pbkdf2 example, basic usage
<?php The above example will output something similar to: 120fb6cffcf8b32c43e7 NotesCaution
The PBKDF2 method can be used for hashing passwords for storage. However, it
should be noted that password_hash or
crypt with See Also
|