-2
I have a function implemented in my system that makes the password storage as follows:
function codifica($usuario, $senha){
$codifica = crypt($senha,$usuario);
$codifica = hash('sha512',$codifica);
return $codifica;
}
I’ve seen that usually people simply make use of the password_hash and of password_verify
I don’t know much about encryption and hashing, I wonder if the function I used is secure enough or if I should stop everything I’m doing and implement password_hash() and password_verify().
This answers your question? How to hash passwords securely?
– hkotsubo