Description
Md5PasswordEncryptor
the password is endless loop
/**
- Hashes the password using MD5
*/
public String encrypt(String password) { return EncryptUtils.encryptMD5(password); }
/**
- {@inheritDoc}
*/
{ throw new NullPointerException("storedPassword can not be null"); }
public boolean matches(String passwordToCheck, String storedPassword) {
if(storedPassword == null)if(passwordToCheck == null)
{ throw new NullPointerException("passwordToCheck can not be null"); }
return encrypt(passwordToCheck).equalsIgnoreCase(storedPassword);
}