Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # From Linux Mag N.255 - article from Frederic Leroy
  2.  
  3. ##
  4. # Using zip/unzip (7zip recommended by CNIL)
  5. # encrypt
  6. zip -e archive.zip file.txt file-2.txt
  7. # decrypt
  8. unzip -e archive.zip
  9.  
  10. ##
  11. # Using gpg2
  12. # encrypt
  13. gpg2 --symmetric file.txt
  14. # decrypt
  15. gpg2 file.gpg
  16.  
  17. ##
  18. # Using openssl
  19. # encrypt
  20. openssl enc -aes-256-cbc -in file.txt -out file.crypted
  21. # decrypt
  22. openssl enc -d -aes-256-cbc -in file.crypted -out file.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement