views:

403

answers:

4

There are many MD5 JavaScript implementations out there. Does anybody know which one is the most advanced, most bugfixed and fastest?

I need it for this tool: http://www.bruechner.de/md5file/js/

+2  A: 

This implementation is used by a number of well known websites and projects. It supports all major browsers.

Ayman Hourieh
+2  A: 

I've heard Joseph's Myers implementation is quite fast. Additionally, he has a lengthy article on Javascript optimization describing what he learned while writing his implementation. It's a good read for anyone interested in performant javascript.

http://www.webreference.com/programming/javascript/jkm3/

His MD5 implementation can be found here

Matt Baker
A: 

If the performance of your application is limited by a Javascript implementation of MD5, then you're really doing something wrong. Consider an architectural change (Hint: use MD5 less often)

MarkR
A: 

You could also check my md5 implementation. It should be approx. the same as the other posted above. Unfortunately, the performance is limited by the inner loop which is impossible to optimize more.

valums