function pbkdf2($password, $salt)
{
    //Make a giant final salt
    $goodSalt = PASSWORD_PEPPER . $salt . PASSWORD_PEPPER;
    //Hash with 1024 iterations and key length of 256 using sha512 for hash
    return pbkdf2_real("sha512", $password, $goodSalt, 1024, 256);
}
Esempio n. 2
0
function pbkdf2($password, $salt)
{
    $goodSalt = PASSWORD_PEPPER . $salt . PASSWORD_PEPPER;
    return pbkdf2_real("sha512", $password, $goodSalt, 1024, 256);
}