Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 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. read INPUT
  5. if [ $INPUT -eq 1 ] ; then
  6.         read encrypt
  7.         crp=`echo '$encrypt' | gpg --symmetric | base64`
  8.         echo $crp
  9. elif [ $INPUT -eq 2 ] ; then
  10.         read decrypt
  11.         dcrp=`echo -n '$decrypt' | base64 --decode | gpg --decrypt`
  12.         echo $dcrp
  13. elif [ $INPUT -eq 3 ] ; then
  14.         exit 0
  15.         else
  16.                 echo "invali choice"
  17.                 return
  18. fi
  19. ~                                                                        
  20. ~                                                                        
  21. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement