This question already has an answer here:
- How to securely hash passwords? 12 answers
password_hash() is the recommended function in PHP to generate password hashes. The standard usage is
password_hash($password, PASSWORD_DEFAULT); and default hash with PASSWORD_DEFAULT is bcrypt. The benefit is using the built-in
password_needs_rehash() functions in PHP.
I was wondering if SHA3-512 with unsalted hashes,
hash("sha3-512", $password); would be better, worse or as good as the password_hash option.