by Malwarebytes (1 Submission)
Category: Files/File Controls/Input/Output
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (20 Votes)
This code will allow you to read a file extremely fast and grab its MD5. On a Pentium D 3.6 ghz it can read Explorer.exe and hash it 50 times in under a second. Please try it out and submit any comments or questions.
Update (1/1/08) - Cut down the speed by over 100% by not converting the buffer into a string value. Cut down the size of the code by removing unnecessary functions.
API DeclarationsCrypto APIs as well as ReadFile()