Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 443 Bytes

gpg.md

File metadata and controls

41 lines (27 loc) · 443 Bytes

gpg

keys management

  • generate key
gpg --gen-key 
  • export public key
gpg --output public.gpg --armor --export EMAIL
  • export private key
gpg --output private.gpg --armor --export-secret-key EMAIL
  • import private key
gpg --import private.gpg

encrypt/decript files

  • encrypt FILE to FILE.gpg
gpg -e -r EMAIL FILE
  • decrypt FILE.gpg to FILE
gpg -o FILE FILE.gpg