- Introduce Usage.DEPRECATED to mark the hash algorithms accordingly - Log warning when such a deprecated hash algorithm is used - Update hash algorithms doc page
16 lines
400 B
Java
16 lines
400 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;
|
|
|
|
@Recommendation(Usage.DEPRECATED)
|
|
public class Md5 extends UnsaltedMethod {
|
|
|
|
@Override
|
|
public String computeHash(String password) {
|
|
return HashUtils.md5(password);
|
|
}
|
|
|
|
}
|