Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. #!/usr/bin/bash
  2. #setting variables for encryption and decryption
  3. echo "What would you like to do?" ; echo "1 Encrypt" ; echo "2 Decrypt" ;echo
  4. crp=`echo '$encrypt' | gpg --symmetric | base64`
  5. dcrp=`echo -n '$decrypt' | base64 --decode | gpg --decrypt`
  6. read INPUT
  7. if [ $INPUT -eq 1 ] ; then
  8. read encrypt
  9. echo $crp
  10. elif [ $INPUT -eq 2] ; then
  11. read decrypt
  12. echo $dcrp
  13. elif [ $INPUT -eq 3 ] ; then
  14. exit 0
  15. else
  16. echo "invali choice"
  17. return
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement