From b250569a6015ee23ea61296ce25c7d1d2c43b1ef Mon Sep 17 00:00:00 2001 From: Romain Prieto Date: Tue, 27 May 2014 08:49:33 +1000 Subject: [PATCH] GPG command As authored by @fordhurley. We had a little merge problem, so had to recreate this file on master. --- pages/common/gpg.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/gpg.md diff --git a/pages/common/gpg.md b/pages/common/gpg.md new file mode 100644 index 0000000000..06c8ad8caf --- /dev/null +++ b/pages/common/gpg.md @@ -0,0 +1,19 @@ +# gpg + +> Gnu Privacy Guard + +- sign doc.txt without encryption (writes output to doc.txt.asc) + +`gpg --clearsign {{doc.txt}}` + +- encrypt doc.txt for alice@example.com (output to doc.txt.gpg) + +`gpg --encrypt --recipient {{alice@example.com}} {{doc.txt}}` + +- encrypt doc.txt with only a passphrase (output to doc.txt.gpg) + +`gpg --symmetric {{doc.txt}}` + +- decrypt doc.txt.gpg (output to STDOUT) + +`gpg --decrypt {{doc.txt.gpg}}`