How to use the md5.hash function in md5

To help you get started, we’ve selected a few md5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kriskowal / narwhal-lib / tests / codecs.js View on Github external
exports.testMd5 = function () {
    assert.eq(md5.hash(raw).toString(16), "65a8e27d8879283831b664bd8b7f0ad4", 'md5');
    assert.eq(md5.hash("message digest").toString(16), "f96b697d7cb7938d525a2f31aaf161d0");
    assert.eq(md5.hash("abc").toString(16), "900150983cd24fb0d6963f7d28e17f72");
};
github kriskowal / narwhal-lib / tests / codecs.js View on Github external
exports.testMd5 = function () {
    assert.eq(md5.hash(raw).toString(16), "65a8e27d8879283831b664bd8b7f0ad4", 'md5');
    assert.eq(md5.hash("message digest").toString(16), "f96b697d7cb7938d525a2f31aaf161d0");
    assert.eq(md5.hash("abc").toString(16), "900150983cd24fb0d6963f7d28e17f72");
};
github kriskowal / narwhal-lib / tests / codecs.js View on Github external
exports.testMd5 = function () {
    assert.eq(md5.hash(raw).toString(16), "65a8e27d8879283831b664bd8b7f0ad4", 'md5');
    assert.eq(md5.hash("message digest").toString(16), "f96b697d7cb7938d525a2f31aaf161d0");
    assert.eq(md5.hash("abc").toString(16), "900150983cd24fb0d6963f7d28e17f72");
};

md5

js function for hashing messages with MD5

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

74 / 100
Full package analysis