JAVA-042 / Beginner
Hashing passwords with MessageDigest (MD5/SHA-1)
Why is this a problem?
Vulnerable to GPU guessing attacks and lacks a salt.
How to fix it
java
PasswordEncoder enc = PasswordEncoderFactories.createDelegatingPasswordEncoder(); // bcrypt by default
String hash = enc.encode(rawPassword);