Author: doogie
Date: Thu May 3 21:13:27 2012
New Revision: 1333622
URL:
http://svn.apache.org/viewvc?rev=1333622&view=revLog:
FEATURE: Add a -digest variant, that uses the deprecated password
digesting code.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java?rev=1333622&r1=1333621&r2=1333622&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java Thu May 3 21:13:27 2012
@@ -22,6 +22,10 @@ public class Main {
public static void main(String[] args) throws Exception {
if (args[0].equals("-crypt")) {
System.out.println(HashCrypt.cryptPassword(args[1], args[2]));
+ } else if (args[0].equals("-digest")) {
+ @SuppressWarnings("deprecation")
+ String digest = HashCrypt.getDigestHash(args[1]);
+ System.out.println(digest);
}
}
}