public class Md4PasswordEncoder extends BaseDigestPasswordEncoder
null password is presented, it will be treated as an empty
String ("") password.
As MD4 is a one-way hash, the salt can contain any characters.
NOTE: This password encoder is only included for backwards compatability with legacy applications, it's not secure, don't use it for anything new!
|Constructor and Description|
|Modifier and Type||Method and Description|
Encodes the rawPass using an MD4 message digest.
Takes a previously encoded password and compares it with a raw password after mixing in the salt and encoding that value.
public String encodePassword(String rawPass, Object salt)
rawPass- The plain text password
salt- The salt to sprinkle
public boolean isPasswordValid(String encPass, String rawPass, Object salt)
encPass- previously encoded password
rawPass- plain text password
salt- salt to mix into password
public String getAlgorithm()