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.