Should we not make this available throught an ant target?
Jacques
From: <
[hidden email]>
> Author: doogie
> Date: Wed Apr 18 23:49:28 2012
> New Revision: 1327742
>
> URL:
http://svn.apache.org/viewvc?rev=1327742&view=rev> Log:
> FEATURE: Very simple command-line tool to crypt a password.
>
> Added:
> ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java
>
> Added: 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=1327742&view=auto> ==============================================================================
> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java (added)
> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/crypto/Main.java Wed Apr 18 23:49:28 2012
> @@ -0,0 +1,9 @@
> +package org.ofbiz.base.crypto;
> +
> +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]));
> + }
> + }
> +}
>
>