> For the complete documentation index, see [llms.txt](https://0xss0rz.gitbook.io/0xss0rz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xss0rz.gitbook.io/0xss0rz/ctf/cryptography-1/gpg.md).

# GPG

```
root@Host-001:/tmp# gpg --import tryhackme.key 
gpg: /root/.gnupg/trustdb.gpg : base de confiance créée
gpg: clef FFA4B5252BAEB2E6 : clef publique « TryHackMe (Example Key) » importée
gpg: clef FFA4B5252BAEB2E6 : clef secrète importée
gpg:       Quantité totale traitée : 1
gpg:                     importées : 1
gpg:           clefs secrètes lues : 1
gpg:      clefs secrètes importées : 1
root@Host-001:/tmp# gpg message.gpg 
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: chiffré avec une clef RSA de 1024 bits, identifiant 2A0A5FDC5081B1C5, créée le 2020-06-30
      « TryHackMe (Example Key) »
root@Host-001:/tmp# cat message
You decrypted the file!
The secret word is Pineapple.
root@Host-001:/tmp# 
```
