Top "Hashlib" questions

Hashlib is a Python module that implements a common interface to many different secure hash and message digest algorithms.

How to fix Unicode encode error using the hashlib module?

After multiple searches I have not been able to determine how to avoid an error stating: "Unicode-objects must be encoded …

python unicode hashlib
Compare result from hexdigest() to a string

I've got a generated MD5-hash, which I would like to compare to another MD5-hash from a string. The …

python string-comparison python-2.x hashlib
Using hashlib to compute md5 digest of a file in Python 3

With python 2.7 the following code computes the mD5 hexdigest of the content of a file. (EDIT: well, not really as …

python python-3.x hashlib
Python shortest unique id from strings

I have more than 100 million unique strings (VARCHAR(100) UNIQUE in MySQL database). Now I use the code below to create …

python md5 hashlib
'frozenset' object is not callable

When I attempt to import hashlib in any context, it throws this error: File "<stdin>", line 1, in <…

python python-2.7 hashlib frozenset
python error "AttributeError: 'module' object has no attribute 'sha1'"

i need your help, How to correct an error AttributeError: 'module' object has no attribute 'sha1', When I start …

linux python-2.7 hashlib
the fastest way to create checksum for large files in python

i need to transfer large files across network and need to create checksum for them on hourly basis. so the …

python multithreading md5 crc32 hashlib
Why the hashlib and hmac are generating different hash values?

In Python 2.7, my = "my" key = "key" print(hashlib.sha256(my + key).hexdigest()) print(hmac.new(my, key, hashlib.sha256).hexdigest()) …

python hmac hashlib
Python and hashlib module

I've just installed Python 2.6.6 from sources and what I get: >>> import hashlib Traceback (most recent call last): …

python hashlib