After you enter the passphrase two times, the command will create the encrypted file. Copy the passphrase that you created earlier, right-click in the ‘Passphrase’ field, choose ‘Paste’, then press Enter to enter the passphrase. You will see a prompt inside the terminal, asking you to enter the passphrase. If you want to encrypt the sensitivefile.txt file, run: gpg -symmetric sensitivefile.txt (To store passwords and passphrases securely, you can use the free and open source application KeePassX.) The result will be a string of random characters similar to this: UsTrkygIo7N5ILbh+1I8v3YB020GyDvtOtdfxRaGTj8GQGVuwWmuOZvjgpMSagzJĬopy this string to a safe location. You can achieve this with the openssl command like this: openssl rand -base64 48 To encrypt a file on a computer with GPG, so that only you will have access to the content of that file (you don’t intend to send that file over the Internet to some remote recipient), the easiest method is to use symmetric encryption, which means that the same key will be used for encryption and decryption.įirst, you should create a long string of random characters, that you can use as a passphrase. Encrypt/Decrypt files and directories for your own use 1.1. The steps presented below can be applied for encrypting/decrypting files or directories stored on a remote Debian server, using a SSH connection, but they can be also used to encrypt/decrypt files and directories stored on a laptop/desktop computer running Debian. #Gpg suite shasum install#GPG is part of the minimal installation of Debian, so, there is no need to install it (otherwise, you would have had to run apt-get install gnupg). If you want to encrypt/decrypt files and directories on your remote server, it’s recommended to use the GNU Privacy Guard (GnuPG or GPG) tool, which is a free software replacement for Symantec’s proprietary PGP cryptographic software suite. #Gpg suite shasum how to#If you want to learn how to encrypt/decrypt emails, please read the Install Thunderbird and use it to encrypt/decrypt emails chapter of our Complete Guide to a Complete Linux Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |