Method | Description | |
---|---|---|
pbkdf2 ( string $password, string $salt, integer $iterationCount, integer $derivedKeyLength, string $algorithm = 'sha256' ) : string | Compute a derived key from a password based on PBKDF2 |
public static pbkdf2 ( string $password, string $salt, integer $iterationCount, integer $derivedKeyLength, string $algorithm = 'sha256' ) : string | ||
$password | string | Input string / password |
$salt | string | The salt |
$iterationCount | integer | Hash iteration count |
$derivedKeyLength | integer | Derived key length |
$algorithm | string | Hash algorithm to use, see hash_algos(), defaults to sha256 |
return | string | The computed derived key as raw binary data |