John and Tina generate an OpenPGP key pair (a private key and a public key) |
John and Tina exchange their public keys, they do not share their private keys. |
John writes a love letter and encrypts it using Tinas public key. |
Tina gets the encrypted love letter and decrypts it using her own private key. |
Because she has Johns public key, she can make sure the love letter is authentic. |
Installing Kleopatra |
The first step is to install Kleopatra using debian linux. |
sudo apt install kleopatra scdaemon |
Or boot tailsos which comes preinstalled with Kleopatra. |
Let's generate your keys now. |
Start Kleopatra and click 'New Key Pair' |
 |
Enter a false name and a false email address and click 'OK' |
 |
OpenPGP certificate created successfully! Click 'OK' |
 |
Now that you have some keys, let's encrypt your address using your public key. |
See 'Notepad' in the toolbar at the top? Click on 'Notepad' and type in your address. |
See where it says 'Recipients' in the tab above your address? Click on 'Recipients' |
 |
Tick only the 'Sign as' and 'Encrypt for me' boxes. Now click 'Sign / Encrypt Notepad' |
 |
You just encrypted your address using your public key! |
Click the 'Notepad' tab to see your encrypted address. |
 |
Copy, paste and save this encrypted address anywhere, only you can decrypt it. |
Now let's say you need to send your encrypted address to Mark. |
In order to do this, Mark must first provide you with his public key. |
Mark has just sent it! |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: Mark <Mark@Mark.com>
Comment: Valid from: 10/23/24 11:17 PM
Comment: Valid until: 10/23/26 12:00 PM
Comment: Type: 3,072-bit RSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User-IDs
Comment: Fingerprint: 42D6180E682DDB12341F9DFD9404351AEF9F1651
mQGNBGcZ9HYBDADKLRC1rV42iH6Qpv3loB72g0l8yv0fcyDR6H587EL+uI4E9SHU
m1ZmHTM+Ec29s+hvhEFlD/EujipLRugF+O8aEp7Ojh2hBNFFiaMG9ZO/3WxtSf5I
iiUL0xsaVxnaJDCJTrF+JpnjSmdjTJeLWUZbUGDvF23SvxgKjMZtXLrnUdRwcLgY
TCvQJf6NGadzPMsT8DpTPHKdK8gK8KLLVzR6AW9rhSR7QJasi3rNNRg21FGNmubi
XLCS8Tabp8A5kHwudJjpducl/uD27W8S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' section of Kleopatra and click 'Import' |
Select the .gpg file containing Marks public key and click 'Open' |
 |
A window pops up asking you to check the fingerprint. |
Click on 'Import' |
 |
Another windows pops up asking you to use your keys to ceritify Marks user ID |
Click on 'Certify' and you should see a 'Certification successful' window, click 'Okay' |
|
 |
You now have multiple keys available in Kleopatras 'Certificates' section. |
One should be your key pair, one should be Marks public key. |
 |
Return to the 'Notepad' and type in your address so we can ecrypt it for Mark. |
 |
Click on the 'Recipients' tab. Tick the 'Encrypt for others' box and select Marks public key. |
 |
Finally click 'Sign/Encrypt Notepad' |
Here is your address encrypted for Mark. |
 |
Send this encrypted address to Mark and he will decrypt it. |
Way to go! You're a pro. |