Monday, May 22, 2017

Password protect file with GNU OpenGPG

Encrtypt
$ gpg -e filename  -o protectedfilename.gpg

This will prompt for password

Decrypt
gpg protectedfilename.gpg

or

gpg -d protectedfilename.gpg > filename

No comments:

Blog Archive