SparkMD5
SparkMD5 is a fast md5 implementation of the MD5 algorithm.
This script is based in the JKM md5 library which is the fastest algorithm around. This is most suitable for browser usage, because nodejs version might be faster.
NOTE: Please disable Firebug while performing the test!
Firebug consumes a lot of memory and CPU and slows the test by a great margin.
Improvements over the JKM md5 library
Strings are converted to utf8, like most server side algorithms
Fix computation for large amounts of data (overflow)
Incremental md5 (see bellow)
Support for array buffers (typed arrays)
Functionality wrapped in a closure, to avoid global assignments
Object oriented library
CommonJS (it can be used in node) and AMD integration
Code passed through JSHint and JSCS
Incremental md5 performs a lot better for hashing large amounts of d