Last active
December 19, 2018 03:42
-
-
Save SanCoder-Q/13c8eccd9908cf11912cc9e98d3b9f0b to your computer and use it in GitHub Desktop.
Revisions
-
SanCoder-Q revised this gist
Dec 19, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,3 +18,6 @@ gpg --output <file.enc> --encrypt --recipient <key recipient name / email> <file # decrypt file gpg --decrypt --output <file> <file.enc> # remove key gpg --delete-key <key recipient name / email> -
SanCoder-Q created this gist
Dec 19, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ # install GnuPG brew install gpg # generate gpg key pair gpg --gen-key # list keys gpg --list-keys # export public key gpg --armor --export <pubuid> > public.key # import public key gpg --import public.key # encrypt file gpg --output <file.enc> --encrypt --recipient <key recipient name / email> <file> # decrypt file gpg --decrypt --output <file> <file.enc>