when I hash my password using hash('sha512', $salt . $password);, should the maximum length in the password column in the database be 512 or does it matter if it gets chopped down? Or can it possibly be longer than 512? Thanks.
when I hash my password using hash(‘sha512’, $salt . $password); , should the maximum
Share
SHA512 actually returns a string of 128 length. So the short answer is, your field only needs to be 128 characters.