There are several md5 modules on npm, but none of them use the
crypto node module.
Researching the performance impact of one vs another is tedious, and I just wanted to
use the core one without having to duplicate code all the time so I just implemented
this function as a separate module.
npm install --save crypto-md5
Returns a base64 md5 hash of the buffer or string. Can return an hex digest.
data: buffer or string to hash
digest: optional digest type. Can be
var md5 = ;;// OFj2IjCsPJFfMAxmQxLGPw==;// 3858f62230ac3c915f300c664312c63f
Please open issues for bugs and suggestions in github. Pull requests with tests are welcome.
crypto-md5 is copyright 2015 Jerome Touffe-Blin and contributors. It is licensed under the BSD license. See the include LICENSE file for details.