[Python-ideas] adding digital signature and encryption "hashes" to hashlib?

Bill Janssen janssen at parc.com
Sun Sep 20 19:07:11 CEST 2009

CTO <debatem1 at gmail.com> wrote:

> > However, it reminded me of an idea from a couple of years ago: extend
> > the hashlib module to produce two additional kinds of hashes: a digital
> > signature for some sequence of bytes, and an encrypted/decrypted version
> > of a sequence of bytes.  Basically, the would bring more of the OpenSSL
> > EVP API out to Python (hashlib already uses OpenSSL EVP for various hash
> > formations).
> >
> > http://www.openssl.org/docs/crypto/evp.html
> Besides the fact that hashes and encryption are pretty much totally
> different

I know it seems that way at first glance, but in fact they are strongly
related.  There's a reason all three (and nothing else) are exported
through OpenSSL's EVP API.


More information about the Python-ideas mailing list