Decrypting PGP-encrypted messages
Decrypting PGP-encrypted messages
Save the PGP-encrypted message as a text file (e.g. abc.txt).
The PGP-encrypted message is usually enclosed within these two placeholders:
- -----BEGIN PGP MESSAGE-----
- -----END PGP MESSAGE-----
If not, then include them in the text file, at the start and at the end, respectively. This is very important.
Then, run the following command:
gpg --decrypt abc.txt
You will be prompted for the GPG passphrase. Enter it.
Upon success, the decrypted message will be printed on the console.
Comments
Post a Comment