Files
ofbiz-framework/debian/EncryptPassword.java
T
Adam Heath 8989419c2e Debian work; have *not* done an install test with this, against
current HEAD.  It worked for a previous version.  I'll be continuing
to improve this over the next few weeks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684387 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:35:11 +00:00

13 lines
341 B
Java

import org.ofbiz.base.crypto.HashCrypt;
import org.ofbiz.common.login.LoginServices;
public class EncryptPassword {
public static void main(String[] args) {
String hashType = LoginServices.getHashType();
for (String arg: args) {
System.out.println(HashCrypt.getDigestHash(arg, hashType));
}
}
}