Skip to content

nicholasngai/gpgit.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

gpgit.py

gpgit.py is a Python wrapper for the GnuPG software, to convert plaintext emails of any Content-Type into PGP-encrypted emails using the PGP/MIME format, defined in RFC 3156. It reads in a raw email file including headers from stdin and outputs the email with rewritten headers in the multipart/encrypted MIME type and an encrypted body. A public key file is passed in from the command line containing a valid GnuPG public key used to encrypt the email. Already-encrypted emails are detected and not re-encrypted.

Optionally, headers may also be encrypted under the Protected Headers for Cryptographic E-mail Internet-Draft. This is disabled by default but maybe enabled using the -p flag, which currently encrypts only the subject. As of now, only Thunderbird 78+ supports reading and displaying encrypted subject lines.

Python 3 is required.

Usage

./gpgit.py [-p] public_key

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages