Advertisement
Guest User

Untitled

a guest
May 27th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # decrypt
  2. cat <encryptedfile> | openssl rsautl -decrypt -inkey ~/.ssh/id_rsa
  3. # encrypt
  4. cat <filetoencrypt> | openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa > <destinationfile>
  5. # to base64
  6. openssl enc -base64 -in fartpass.txt -out fart.base64
  7. # to encrypt
  8. openssl enc -d -base64 -in fart.base64 -out myfile.decrypt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement