How encrypt email with a GnuPG public key ?
How encrypt email with a GnuPG public key ?
Hi,
I'm already using
python
from smtplib import SMTP_SSL from email.message import EmailMessage
To send emails.
Now I would like to be able to encrypt them with the public key of the recipient. ( PublicKey.asc
)
I like the approach, only one "low level" import cryptography
but the code seem wrong.
if the body has been encrypted as ciphertext
I don't see this one included while sending the email.
How are you doing it ? or do you have good tutorial, documentations ? because I found nothing "pure and simple" meaning not with of unnecessary stuff.
Thanks.
I finally manage to encrypt the body trough ptyhon-gnupg ( warning their documentation is still in alpha stage. )
now, remain to encrypt the subject (ThunderBird compatible) if you have any clues I'm all ears
When time permit I will publish my code in a pastbin.
Wubba Lubba dub-dub**
Congrats 🙂