PHP » GoLang |
login |
register |
about
|
hash_pbkdf2(PHP 5 >= 5.5.0, PHP 7) hash_pbkdf2 — Generate 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
|
more
Recently updated
more
Most requested
more
Last requests
|