gpg2

gpg2

TLDR

List imported keys

>_ gpg2 --list-keys
copy

Encrypt a specified file for a specified recipient, writing the output to a new file with .gpg appended

>_ gpg2 --encrypt --recipient [alice@example.com] [path/to/doc.txt]
copy

Encrypt a specified file with only a passphrase, writing the output to a new file with .gpg appended

>_ gpg2 --symmetric [path/to/doc.txt]
copy

Decrypt a specified file, writing the result to the standard output

>_ gpg2 --decrypt [path/to/doc.txt.gpg]
copy

Import a public key

>_ gpg2 --import [path/to/public_key.gpg]
copy

Export the public key of a specified email address to the standard output

>_ gpg2 --export --armor [alice@example.com]
copy

Export the private key with a specified email address to the standard output

>_ gpg2 --export-secret-keys --armor [alice@example.com]
copy

Copied to clipboard
free 100$ digital ocean credit