mirror of
https://github.com/denisidoro/navi
synced 2024-11-24 20:43:06 +00:00
gpg cheat
This commit is contained in:
parent
40ed4e60ba
commit
cf9bff10a3
1 changed files with 39 additions and 0 deletions
39
cheats/gpg.cheat
Normal file
39
cheats/gpg.cheat
Normal file
|
@ -0,0 +1,39 @@
|
|||
% gpg
|
||||
|
||||
# gpg version
|
||||
gpg --version
|
||||
|
||||
# gpg generate key
|
||||
gpg --gen-key
|
||||
|
||||
# list keys
|
||||
gpg --list-keys
|
||||
|
||||
# distribute public key to key server
|
||||
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys <public-key>
|
||||
|
||||
# export public key
|
||||
gpg --output <filename.gpg> --export <email>
|
||||
|
||||
# import public key
|
||||
gpg --import <filename.gpg>
|
||||
|
||||
# encrypt document
|
||||
gpg --output <output-filename.gpg> --encrypt --recipient <public_key> <input-filename>
|
||||
|
||||
# decrypt document
|
||||
gpg --output <filename> --decrypt <filename.gpg>
|
||||
|
||||
# make a signature
|
||||
gpg --output <filename.sig> --sign <filename>
|
||||
|
||||
# verify signature
|
||||
gpg --output <filename> <filename> --decrypt <filename.sig>
|
||||
|
||||
# clearsign documents
|
||||
gpg --clearsign <filename>
|
||||
|
||||
# detach signature
|
||||
gpg --output <filename.sig> --detach-sig <filename>
|
||||
|
||||
|
Loading…
Reference in a new issue