Some Linux distros have GnuPG installed by default, but if your distro doesn’t have it installed you can get it through the package manager or compiling it from its source code.
Also, you should read the “mini-Howto” about GPG.GnuPG mini-Howto: http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto.htm
I have created a file called “new.file” and I want to cipher it, so I have to use gpg as the following way –
I think that GnuPG is the best way to encrypt files in Linux for three reasons:
- It supports asymmetric keys.
- It supports the RSA and DSA algorithms.
- It is free.
If you think that GnuPG is very hard to use it, you have some alternatives:
- GnuPG Shell
You can use it in Linux or Windows.
It’s a frontend for the Gnome desktop environment.
If you’re using KDE, KGpg is for you. It’s a GUI for GnuPG.
It has the advantage that is supported by several operating systems:
- Sun Solaris
- Windows NT
- Android 4+
- Mac OS X (universal)
ccrypt is less complex than GnuPG and if you’re looking for a quick way to encrypt your files it’s a good alternative for you. ccrypt is developed by Peter Selinger, he’s a professor of mathematics at Dalhousie University.
If you want to encrypt your files using this way you have several options:
It’s one of the most popular formats to compress files and also you can use it to keep save your information, just use the following command:
Also, you can use 7-zip if you want, but you must have installed the p7zip-full package on your system.