appsattic/node-awssum — pull request #26 by hamman (2012-06-08 21:13:23+00:00)
Title: Fixed issue with MD5 hashing of larger strings by using Buffers

The current implementation runs crypto's hashing on options.body as a string, which generates hashes different from Amazon for files larger than about 136000 bytes. I switched this so first converts options.body to a Buffer, which generates hashes consistent with Amazon.

I didn't change the example, since this happens internally, but it might be worth doing since someone could override the md5 hashing if they wanted to.