While running encrypt .bat -g test on the command prompt.
I am getting following error : 2014-03-20 19:55:51,549 INFO [main] security.EncryptionUtil main (EncryptionUti l.java:289) - Invalid option format: .bat
In the bin directory just run encrypt -g test. Don't include the .bat bit.