Jasypt Users Forum

CLI encryption using FixedStringSaltGenerator

View: New views
1 Messages — Rating Filter:   Alert me  

CLI encryption using FixedStringSaltGenerator

by keeleyt83 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

+------------------------+
  Jasypt Users List      
  http://www.jasypt.org 
+------------------------+

Hi all,
 
I've decided to use the FixedStringSaltGenerator for my encryptor but I have preexisting data in the columns to be encrypted. I was going to encrypt that data via the command line (like I had done previously, with the default salt generator) but I can't seem to get the sytax correct. Below is the data from my command window:
 
-----------------------------
C:\dev\jasypt-1.5\bin> encrypt input=mydatatoencrypt password=mypassword verbose=true algorithm=PBEWithMD5AndDES keyObtentionIterations=1000 saltGeneratorClassName=org.jasypt.salt.FixedStringSaltGenerator
----ENVIRONMENT-----------------
Runtime: Sun Microsystems Inc. Java HotSpot(TM) Client VM 14.0-b16
 
----ARGUMENTS-------------------
verbose: true
algorithm: PBEWithMD5AndDES
input: mydatatoencrypt
password: mypassword
keyObtentionIterations: 1000
saltGeneratorClassName: org.jasypt.salt.FixedStringSaltGenerator
 
----ERROR-----------------------
Operation not possible (Bad input or parameters)
-----------------------------
 
I believe I probably have to set the salt value for the fixed string salt generator, but I'm not sure how to specify this on the command line. Can anybody help? Thanks in advance.
 
AK


NCI is a company dedicated to trust, integrity, and performance.

If you have received this message in error, please contact the sender immediately and be aware that the use, copying, or dissemination of this information is prohibited. This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient.



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
jasypt-users mailing list
jasypt-users@...
https://lists.sourceforge.net/lists/listinfo/jasypt-users