Add the following functions to your ~/.bash_profile
:
encrypt(){
/Users/ai/jasypt-1.9.2/bin/encrypt.sh \
input="$1" \
password="somesupersecretpassword" \
stringOutputType="hex"
}
decrypt(){
/Users/ai/jasypt-1.9.2/bin/decrypt.sh \
input="$1" \
password="somesupersecretpassword" \
stringOutputType="hex"
}
encryt abc // output 8DD2F28E1A09C58E84D5935BCCFF3EED
decrypt 8DD2F28E1A09C58E84D5935BCCFF3EED // output abc