Send email with GnuPG / OpenPGP

Hi,

I’m using from smtplib import SMTP_SSL and from email.message import EmailMessage to send emails and it work great !

Now I would like to be able to send encrypted email for peoples of which i have their GnuPG / OpenPGP ECC key…

But I have no ideas where to start !? I’ve dig the WWW but I found only old (very old) articles about it…

How work email encryption ? mean how is it formatted ? Does additional header are required etc…

Thanks.

You can try python-gnupg.

Yeah, you should attach signature. Something like this: How to send gpg encrypted email (with attachment) using python - Stack Overflow

1 Like