Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 481 Bytes

encryption-with-gnu-pgp.md

File metadata and controls

36 lines (24 loc) · 481 Bytes

Encryption with GNU PGP

Install on a Mac with:

brew install gnupg

Confirm installation with:

gpg --help

Encrypt a file symmetrically with a password:

gpg --symmetric some-file.txt

That will create a binary file some-file.txt.gpg.

To create and ASCII file,

gpg --armor --symmetric some-file.txt

That will create some-file.txt.asc.

To decrypt, use:

gpg --decrypt some-file.txt.asc
gpg -d some-file.txt.asc