/hostadmiral/trunk/src/ak/hostadmiral/core/model/PasswordStoreCrypt.java |
---|
21,13 → 21,13 |
return DigestCrypt.crypt(password); |
} |
public boolean checkPassword(String password) |
throws ModelException |
public boolean checkPassword(String password) |
throws ModelException |
{ |
if(this.password == null || this.password.length() < 3) return false; |
String salt = this.password.substring(0, 2); |
String salt = this.password.substring(0, 2); |
String crypted = DigestCrypt.crypt(salt, password); |
return crypted.equals(this.password); |
} |
} |
} |