- Deprecate unsalted hashes: if such a hash is configured, move it to the legacy hashes setting to still support the existing hashes in the database but hash all passwords from now on with our default, SHA256.
17 lines
412 B
Java
17 lines
412 B
Java
package fr.xephi.authme.security.crypts;
|
|
|
|
import fr.xephi.authme.security.HashUtils;
|
|
import fr.xephi.authme.security.crypts.description.Recommendation;
|
|
import fr.xephi.authme.security.crypts.description.Usage;
|
|
|
|
@Deprecated
|
|
@Recommendation(Usage.DEPRECATED)
|
|
public class Md5 extends UnsaltedMethod {
|
|
|
|
@Override
|
|
public String computeHash(String password) {
|
|
return HashUtils.md5(password);
|
|
}
|
|
|
|
}
|