Skip to content

Instantly share code, notes, and snippets.

@caisback
Last active June 15, 2021 07:28
Show Gist options
  • Select an option

  • Save caisback/7882dd76204e44663403391c0ed1cfac to your computer and use it in GitHub Desktop.

Select an option

Save caisback/7882dd76204e44663403391c0ed1cfac to your computer and use it in GitHub Desktop.
jasypt installation and how to use?
  1. Install jasypt on fuse/karf server
  • bundle:install camel-jasypt
admin@root()> features:install camel-jasypt
  1. Download the project
  1. Compile it using Maven
  • cd jasypt/jasypt
  • $ mvn clean install
  1. Test Run; show help
  • $ cd target
  • $ java -cp jasypt-1.9.4-SNAPSHOT.jar:/home/<YOUR_USER>/ESB/fuse-karaf-7.6.0.fuse-760025-redhat-00001/data/repository/org/apache/camel/camel-jasypt/2.21.0.fuse-760027-redhat-00001/camel-jasypt-2.21.0.fuse-760027-redhat-00001.jar org.apache.camel.component.jasypt.Main -help
    Should return...
    
    Apache Camel Jasypt takes the following options:
    
    -h or -help = Displays the help screen
    -c or -command <command> = Command can be encrypt or decrypt
    -p or -password <password> = Password to use
    -i or -input <input> = Text to encrypt or decrypt
    -a or -algorithm <algorithm> = Optional algorithm to use
    
  1. Test Run; Encrypting (i)nput=secret (p)assword=supersecret
    • $ java -cp jasypt-1.9.4-SNAPSHOT.jar:/home/<YOUR_USER>/ESB/fuse-karaf-7.6.0.fuse-760025-redhat-00001/data/repository/org/apache/camel/camel-jasypt/2.21.0.fuse-760027-redhat-00001/camel-jasypt-2.21.0.fuse-760027-redhat-00001.jar org.apache.camel.component.jasypt.Main -c encrypt -p supersecret -i secret
       	Encrypted text: N8fZqy5MOUOlUJPMa45ugw==
      
@caisback

Copy link
Copy Markdown
Author

~/ESB/jasypt/jasypt/target$ java -cp jasypt-1.9.4-SNAPSHOT.jar:/home/bboy/Desktop/fuse-karaf-7.6.0.fuse-760025-redhat-00001/data/repository/org/apache/camel/camel-jasypt/2.21.0.fuse-760027-redhat-00001/camel-jasypt-2.21.0.fuse-760027-redhat-00001.jar org.apache.camel.component.jasypt.Main help
Error: Unknown option: help

Apache Camel Jasypt takes the following options:

-h or -help = Displays the help screen
-c or -command = Command can be encrypt or decrypt
-p or -password = Password to use
-i or -input = Text to encrypt or decrypt
-a or -algorithm = Optional algorithm to use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment