Gpg

From KeegansWiki
Jump to navigation Jump to search

Create Key

  • gpg --gen-key
  • gpg --armor --output pubkey.txt --export 'Your Name'

List Keys

  • gpg --list-keys

Import another key

  • gpg --import key.asc

Encrypt file using someone else's public key

  • gpg --encrypt --recipient user@email.com inputFile