Dave's Brain

Browse - Computer Tips - How can I simply use GPG (GnuPG) to encrypt a file?

Date: 2011jan4

Q.  How can I simply use GPG (GnuPG) to encrypt a file?

A.  You don't have to use all the public/private key stuff you can just do:

gpg -c <file>
You will be prompted for a password (twice) and the encrypted file will be
<file>.gpg
Don't forget the password! use:
gpg -d <file>.gpg
do decrypt with the same password. That's why this is called symmetric encryption.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.