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
Answer from Matt Baker on Stack OverflowI'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
I would suggest you use CryptoJS in this case.
Basically CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.
So if you want to calculate the MD5 hash of your password string then do as follows:
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js"></script>
<script>
var passhash = CryptoJS.MD5(password).toString();
$.post(
'includes/login.php',
{ user: username, pass: passhash },
onLogin,
'json' );
</script>
So this script will post the hash of your password string to the server.
For further info and support on other hash calculating algorithms you can visit:
http://code.google.com/p/crypto-js/
What’s the fastest and most reliable MD5 implementation in JavaScript? - TestMu AI Community
SparkMD5, a fast md5 hash library that performs normal and incremental hashing useful to calculate the md5 of large files
MD5 in Javascript (library)
Cracking MD5 with JS, can I somehow use a bitcoin miner instead of maxing cpu usage?
There is some experiment using GPU computing in javascript: https://github.com/stormcolor/webclgl, demo: https://rawgit.com/stormcolor/webclgl/master/demos/benchmarks/index.html
It won't provide access to bitcoin miner, but probably much better than raw CPU.
More on reddit.com
» npm install md5
» npm install js-md5