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
13 lines
341 B
Java
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));
|
|
}
|
|
}
|
|
}
|
|
|