Hashlib py26
Robert Kern
robert.kern at gmail.com
Tue Dec 2 18:17:03 EST 2008
ShannonL at yogananda-srf.org wrote:
> This feels a bit silly, but I am trying to encrypt some simple text with
> the new hashlib library and then decrypt it back into text. I can do
> this with M2Crypto RC4, but not the new hashlib. Could someone give me
> a quick example.
hashlib does not do encryption. It implements cryptographic hash functions
which, while related to encryption algorithms and sometimes are a primitive
component of such algorithms, do not actually encrypt and decrypt messages.
http://en.wikipedia.org/wiki/Cryptographic_hash_function
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list