Giter Club home page Giter Club logo

kryptomime's Introduction

kryptomime

A package for signed and encrypted MIME messages. It currently supports PGP/MIME via GnuPG and S/MIME via OpenSSL.

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.

Latest Version 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=('[email protected]','passphrase'))
>>> msg = create_mail('[email protected]','[email protected]','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.

kryptomime's People

Contributors

ttanner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

movermeyer

kryptomime's Issues

verification failed, error handling

If the verification of a signed email fails, how does the error handling look like?

From kryptomime there is not much support, the respective result variables are just 'boolean' without indicating any reason of thhe failure.

Any chance to improve by providing some more information about the failure of the verification?

Thanks for any clarification
S

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.