node.js md5 is not defined code example
Example 1: npm md5
npm i md5
var md5 = require("md5");
console.log(md5("message")); //encryption of message
Example 2: Create MD5 hash with Node.js
var crypto = require('crypto');
var hash = crypto.createHash('md5').update(string).digest('hex');
console.log(hash);