Source
Linux tips: Encrypting and decrypting files from command line with gpg
Are you paranoid? Are you afraid that someone is going to get ahold of data they sholdn’t have? I am. And because of that I often encrypt files with a gpg key that was given to no one. With those encrypted files I know they are secure to most of the general public. And because I tend to use lengthy passkeys for gpg, cracking them is a challenge.
Naturally I use gpg for all of this. And when I am using gpg I am using it from the command line. It’s actually quite easy to use. In this article I will show you how to create a gpg key, encrypt, and decrypt a file. You will find this such an easy task you’ll be using it more than you think.
(more…)