I’m working on Objective C Cocoa application. I tested CC_MD5 in CommonCrypto, and it worked just fine; however, when I gave 5 gygabyte file to it, my whole computer froze and crashed. MD5 algorithm processes input as 512-byte chunks and doesn’t really require all the input at once. Is there an library in Objective C or C that asks for next 512-byte chunk instead of taking all input at once?
I’m working on Objective C Cocoa application. I tested CC_MD5 in CommonCrypto , and
Share
There is a great thread on calculating MD5 of large files in obj-C here:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/17659-calculating-md5-hash-large-file.html
Here is the solution someone came up with there: