public class Md5PasswordEncoder extends MessageDigestPasswordEncoder
MD5 implementation of PasswordEncoder.
If a null
password is presented, it will be treated as an empty
String
("") password.
As MD5 is a one-way hash, the salt can contain any characters.
This is a convenience class that extends theMessageDigestPasswordEncoder
and
passes MD5 as the algorithm to use.Constructor and Description |
---|
Md5PasswordEncoder() |
encodePassword, getAlgorithm, getMessageDigest, isPasswordValid, setIterations
getEncodeHashAsBase64, setEncodeHashAsBase64
demergePasswordAndSalt, mergePasswordAndSalt