652 B
652 B
GPG Cheatsheet
Generate Keypair
- Generating a keypair via gpg
gpg --gen-key
Encryption via GPG
- Encryption of a file via gpg
gpg --symmetric --cipher-algo <algorithm> $PLAIN_TEXT
Armored Encryption via GPG
- ASCII armored encryption output is done via
gpg --armor --symmetric --cipher-algo <algorithm> $PLAIN_TEXT
Decryption via GPG
- Decryption of a file via gpg
gpg --output original_message.txt --decrypt $CIPHER
Encrypt & Sign an eMail
- Encryption and siging via gpg is done in the following way
gpg --encrypt --sign --armor -r bill.gates@microsoft.com message.txt