Skip to main content

Python support for E-Mail kryptography

Project description

A package for encrypted MIME messages. It currently supports PGP/MIME via GPG. S/MIME support is planned for future releases.

Disclaimer

Proper kryptography requires security audits of the complete system. Even though the author is not aware of any bugs in this software, it comes with ABSOLUTELY NO WARRANTY. USE THIS SOFTWARE AT YOUR OWN RISK.

Build status Coverage

Installation

From PyPI

[sudo] pip install kryptomime

From this git repository

To install this package from this git repository, do:

git clone https://github.com/ttanner/kryptomime.git
cd kryptomime
python setup.py install
python setup.py test

Optionally to build the documentation after installation, do:

cd docs
make html

This is a simple example of how to use kryptomime:

>>> from kryptomime import create_mail, GPGMIME
>>> import gnupg
>>> gpg = gnupg.GPG(home='gpghome')
>>> krypto = GPGMIME(gpg,default_key=('foo@bar.com','passphrase'))
>>> msg = create_mail('foo@bar.com','bar@fnord.net','subject','body\nmessage')
>>> sgnmsg,results = krypto.sign(msg)
>>> verified, results = krypto.verify(sgnmsg)
>>> rawmsg,signed = krypto.strip_signature(sgnmsg)
>>> encmsg,results = krypto.encrypt(msg,sign=True)
>>> verified, results = krypto.verify(encmsg)
>>> decmsg, verified, results = krypto.decrypt(encmsg)

Bug Reports & Feature Requests

Please use the bugtracker on Github.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kryptomime-0.4.1.tar.gz (40.9 kB view details)

Uploaded Source

File details

Details for the file kryptomime-0.4.1.tar.gz.

File metadata

  • Download URL: kryptomime-0.4.1.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kryptomime-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a92432777442e31ef1923b588082f3438bfe45f2df46c725fede7b1449401d9f
MD5 d13bebc527f3d84e4c9c1df003e89396
BLAKE2b-256 b52014fc1bcfa9fa0290c1b8bae48f2cf1e7073f53ad34ba9ae6fdde1fe17b95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page