hashlib

Generating an MD5 checksum of a file

Generating an MD5 checksum of a file Question: Is there any simple way of generating (and checking) MD5 checksums of a list of files in Python? (I have a small program I’m working on, and I’d like to confirm the checksums of the files). Asked By: Alexander || Source Answers: There is a way that’s …

Total answers: 7

Hashing in SHA512 using a salt? – Python

Hashing in SHA512 using a salt? – Python Question: I have been looking through ths hashlib documentation but haven’t found anything talking about using salt when hashing data. Help would be great. Asked By: RadiantHex || Source Answers: Salting isn’t a magical process that the library needs to help you with—it’s just additional data provided …

Total answers: 7

Get MD5 hash of big files in Python

Get the MD5 hash of big files in Python Question: I have used hashlib (which replaces md5 in Python 2.6/3.0), and it worked fine if I opened a file and put its content in the hashlib.md5() function. The problem is with very big files that their sizes could exceed the RAM size. How can I …

Total answers: 13