plaintext to cryptext (and back) via GPG
October 10th, 2006 | by jg3 |Let’s pretend that a file is called secrets and is full of information that I don’t want anyone else to know. I can encrypt just that file using the GNU Privacy Guard like this:
gpg -c secrets
enter a passphrase
enter passphrase again
You’re done! But now both the original file secrets and the encrypted file secrets.gpg exist so:
rm secrets
To view the contents of the encrypted file simply:
gpg -d secrets
and give the passphrase when prompted.
If you lose your passphrase, well, tough luck.
Filed under: Computers, documentation, Security
You must be logged in to post a comment.