killchain-compendium/Cryptography/GPG-Cheatsheet.md

407 B

GPG Cheatsheet

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