How to escape various special characters during jasypt encryption

Solution Verified - Updated -

Issue

  • java -cp jasypt-1.9.3.redhat_3.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="!@#$%`" password=mysecret algorithm=PBEWithMD5AndDES
        bash: !@#: event not found
    

Environment

  • Red Hat Fuse
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content