From 05dccfb509994792f7d3e0c1143f1dfea8a32d5a Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 31 May 2020 14:17:10 +0200 Subject: Add gpg symmetric stuff --- gpg.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gpg.md b/gpg.md index 2956dab..00a6850 100644 --- a/gpg.md +++ b/gpg.md @@ -1,9 +1,28 @@ # GPG Crypto -## Encrypt file with passphrase +## General options + +* `--armor` or `-a`: ASCII armor, output is printable ASCII +* `--local-user` or `-u`: specify which ID to use + +## Symmetric encryption + +### Encrypt file with passphrase gpg --symmetric +Add `--armor` to make it readable-ASCII encoded. + ### Decrypt gpg --output --decrypt + +## Export private key + + gpg --armor --export-secret-keys + +`--armor` makes it readable-ASCII encoded. + +## Asymmetric crypto + + gpg --encrypt [--sign] [-u USER] file -- cgit v1.2.3