Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can my password contain special characters using jasypt and encrypt.sh?

Tags:

jasypt

Trying to use the encrypt.sh utility and my password has special characters:

./encrypt.sh input="$%#!" password="your_jasypt_password" algorithm="PBEWITHSHA256AND128BITAES-CBC-BC" keyObtentionIterations=1000 providerName="BC"

-bash: !": event not found

like image 781
user2395365 Avatar asked Dec 07 '22 00:12

user2395365


1 Answers

Ok easy-- need to use single quotes instead of double quotes.

like image 52
user2395365 Avatar answered May 16 '23 07:05

user2395365