Advertisement
metalx1000

Encrypt a file and upload it

Feb 24th, 2016
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #Encrypt file
  2. openssl aes-256-cbc -in me.jpg -out me.jpg.enc
  3.  
  4. #same thing, but output as ASCII
  5. openssl aes-256-cbc -in me.jpg -out me.jpg.enc -a
  6.  
  7. #If your output is ASCII you can post it online
  8. cat me.jpg.enc|nc termbin.com 9999
  9. http://termbin.com/d6rf
  10.  
  11. #To retrieve file and decode
  12. curl -s http://termbin.com/d6rf|openssl aes-256-cbc -d -a -out me2.jpg
  13.  
  14. #view image
  15. display me2.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement