More secure hash for PHP Leave a reply Use the following function password_hash($password, PASSWORD_BCRYPT) – more info boolean password_verify ( string $password , string $hash ) – more info $password = password entered by user $hash = string that produced by password_hash