Tag Archives: PDO

Password Hashing in PHP

Functions for hashing password password_hash() password_verify() password_hash() – Syntax: string $password – Password provide by user integer $algo – Password algorithm constant(PASSWORD_DEFAULT and PASSWORD_BCRYPT) PASSWORD_DEFAULT – uses the BCrypt algorithm to create the hash PASSWORD_BCRYPT – uses the CRYPT_BLOWFISH algorithm and will return a 60 character string $options – $options have two indexes.One is cost… Read More »