What's the difference between the Password encryption algorithm and the Digest Algorithm in Glassfish 4? Because Password encryption algorithm cannot be blank, I used MD5, and for Encoding, Hex. The Digest Algorithm is blank, so the default is SHA-256.
But if I made a simple login application with JAAS, and create the tables, insert one user, and the password is encrypted with MD5, the user cannot log in. If i encrypt the password with SHA-256, the user can log in.
So, what is the Password encryption algorithm field?
PBKDF2
,Rfc2898DeriveBytes
,Argon2
,password_hash
,Bcrypt
or similar functions. The point is to make the attacker spend substantial of time finding passwords by brute force. – Gemmation