- **Epistemic status:** #budding To encrypt a file easily with [[GPG]] you can use the following command that will create an encrypted file using a passphrase that you will provide and add to the file the extension of `.gpg` at the end of it to let you know what tool used to decrypt it. **This will leave the original decrypted file, and you will need to delete it afterwards**. ```bash gpg -c name-of-file.txt ``` **Arguments** - `-c`: Encrypt with symmetric cipher (passphrase) only. --- ## References - “How to Encrypt and Decrypt Files Using GPG Command.” Accessed March 27, 2022. <https://linoxide.com/gpg-command-encrypt-decrypt-file/>. - khess. “File Encryption and Decryption Made Easy with GPG.” Enable Sysadmin. Red Hat, Inc. Accessed March 27, 2022. <https://www.redhat.com/sysadmin/encryption-decryption-gpg>. - Mckay, Dave. “How to Encrypt and Decrypt Files With GPG on Linux.” How-To Geek. Accessed March 27, 2022. <https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/>. - Project, The People of the GnuPG. “GnuPG - Gpg Man Page.” The GnuPG Project, July 4, 2017. <https://www.gnupg.org/documentation/manpage.html>.