Encrypt files with GPG / GnuPG
Written by edmond in Applications, Cryptare, Debian, Gnu-Linux, Security, Tips & Tricks, UtilitiesTo use GPG is another way to encrypt your important files, as an alternative to encfs and mcrypt. There are of interfaces
graphics to create GPG keys. For those who use Gnome, seahorse, for those using KDE, kgpg. In this case, use the terminal.
First you need to generate the key with the command:
gpg --gen-key
At this point we answer the questions that appear on screen, and insert our data, such as name, email, etc. etc.
choose a password, and begin to move the mouse until the password has not been created., there must
A message like this:
Now we are ready to encrypt a file using the name we have chosen at the beginning of the creation of the key.
Figures:
gpg-e-r test.txt edmond
or alternatively:
gpg --encrypt --recipient edmond prova.txt
Decrypt:
gpg --output prova.txt --decrypt prova.txt.gpg
oppure:
gpg --output prova.txt --symmetric prova.txt.gpg
Per ulteriori informazioni, man gpg

















