Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- #setting variables for encryption and decryption
- echo "What would you like to do?" ; echo "1 Encrypt" ; echo "2 Decrypt" ;echo
- read INPUT
- if [ $INPUT -eq 1 ] ; then
- read encrypt
- crp=`echo '$encrypt' | gpg --symmetric | base64`
- echo $crp
- elif [ $INPUT -eq 2 ] ; then
- read decrypt
- dcrp=`echo -n '$decrypt' | base64 --decode | gpg --decrypt`
- echo $dcrp
- elif [ $INPUT -eq 3 ] ; then
- exit 0
- else
- echo "invali choice"
- return
- fi
- ~
- ~
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement