Hi,
Not yet really did but I guess you have to register the provider into JAVA VM before you can use jasypt from CLI.
Regards,
Ji
xinxinwang wrote:
I need to encryt a password using Bouncy Castle JCE provider's AES 128 algorithm with jasypt encrypt command from a Windows command line window. I made sute that adding the Bouncy Castle JCE provider's jar file for JDK 1.6 to the classpath. I also copied that jar file to my jasypt lib directory. However, when I invoke this comman:
encrypt providerClassName=org.bouncycastle.jce.provider.BouncyCastleProvider algorithm=PBEWITHSHA256AND128BITAES-CBC-BC keyObtentionIteration
s=200904 password=smil.mil.army.forscom.datasource.ast.09-1.1-0 input=love4##4
I got the following error:
java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
What else should I do to allow jayspt to find the class from the comman line?
Thanks for any help,