PHP 5.4.31 Released

openssl_pbkdf2

(PHP 5 >= 5.5.0)

openssl_pbkdf2Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1

Description

string openssl_pbkdf2 ( string $password , string $salt , int $key_length , int $iterations [, string $digest_algorithm ] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

password

salt

key_length

iterations

digest_algorithm

Return Values

Returns string or FALSE on failure.

add a note add a note

User Contributed Notes 1 note

up
1
McGlockenshire
4 months ago
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.
To Top