diff --git a/navi/gpg.cheat b/navi/gpg.cheat new file mode 100644 index 0000000..2747a88 --- /dev/null +++ b/navi/gpg.cheat @@ -0,0 +1,42 @@ +% gpg + +# GPG version +gpg --version + +# GPG generate key +gpg --gen-key + +# List keys +gpg --list-keys + +# Export public key +gpg --output --export + +# Export public key as ASCII +gpg --output --export --armor + +# Import public key +gpg --import + +# Encrypt document +gpg --output --encrypt --recipient + +# Decrypt document +gpg --output --decrypt + +# Make a signature +gpg --output --sign + +# Verify signature +gpg --verify + +# Clearsign documents +gpg --clearsign + +# Detach signature +gpg --output --detach-sig + +$ files: ls * | awk '{print $1}' +$ gpg_files: ls *.gpg | awk '{print $1}' +$ gpg_public_keys: gpg --list-keys | grep uid | sed 's/.*<\(.*\)>.*/\1/' | awk '{print $1}' +