A node module that hashes data to MD5.
A node module that hashes data to MD5
npm install md5-nodejs
const md5 = require('md5-nodejs');
const hash = md5('data to hash');
Here are some examples
const hash = md5('string to hash');
const hash = md5(Buffer.from('carmine'));
const int16Array = new Int16Array(2);
int16Array[0] = 42;
const hash = md5(int16Array);
const hash = md5({
name: 'carmine'
});
const hash = md5(['hash', 'this', 'array']);
const hash = md5(3.14159265359);
const hash = md5(true);