6 Deciphering

To decipher a file that was encrypted, use the following command:

gpg -d < test.txt.encrypted > test.txt

Because deciphering requires the use of the private key, GPG automatically prompts you for the passphrase of your private key. Once your passphrase is authenticated, the command proceeds to decipher the file test.txt.encrypted, and creates the original file test.txt.