cheatsheet:gpg

GPG

  • Key pair creation
$ gpg --full-gen-key
  • List keys
$ gpg --list-keys
  • List own keys
$ gpg --list-secret-keys
$ gpg -K
  • Import/export key into binary :
# Import
$ gpg --import <file>
# Export
$ gpg --export <id> --output <file>
  • Import/export key into ASCII :
# Import
$ gpg -a --import <fichier>
# Export
$ gpg -a --export <identifiant> --output <fichier>
  • Cipher file
$ gpg [--ouput <output>] --encrypt -r <id> <input file>
  • Uncipher
$ gpg --decrypt -r <id> <file>
  • Sign file
$ gpg --sign <file>
  • cheatsheet/gpg.txt
  • Last modified: 2024/10/14 20:59
  • by 127.0.0.1