linux poison RSS
linux poison Email

Encrypt-Decrypt file using GPG

With GPG you can encrypt and decrypt files with a password. GPG is an encryption and signing tool for Linux/UNIX like operating system such as OpenBSD/Solaris/Fedora.

In this first example I will show you the basics on how to encrypt a file. But before we do that lets create a file called encrypt_example.

# touch encrypt_example

To encrypt single file, use the GPG command as follows: gpg -c encrypt_example. This will create a encrypt_example.gpg file. The -c option will Encrypt with symmetric cipher

Now to decrypt it, use command - gpg encrypt_example.gpg


0 comments:

Post a Comment

Related Posts with Thumbnails