Add new hash method (#1446)

Add new hash method for a CMS : http://craftmywebsite.fr/
This commit is contained in:
Thibaut DAVID
2017-12-07 19:58:19 +01:00
committed by ljacqu
parent 8f4171c436
commit 2d77f54695
3 changed files with 30 additions and 0 deletions
@@ -0,0 +1,14 @@
package fr.xephi.authme.security.crypts;
import fr.xephi.authme.security.HashUtils;
/**
* Hash algorithm to hook into the CMS <a href="http://craftmywebsite.fr/">Craft My Website</a>.
*/
public class CmwCrypt extends UnsaltedMethod {
@Override
public String computeHash(String password) {
return HashUtils.md5(HashUtils.sha1(password));
}
}