- 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 FILE to FILE.gpg
gpg -e -r EMAIL FILE
- decrypt FILE.gpg to FILE
gpg -o FILE FILE.gpg