create md5 hash vanilla javascript code example
Example 1: Create MD5 hash with Node.js
var string = 'some string';
var crypto = require('crypto');
var hash = crypto.createHash('md5').update(string).digest('hex');
console.log(hash);
Example 2: Create MD5 hash with Node.js
var crypto = require('crypto');
var hash = crypto.createHash('md5').update(string).digest('hex');
console.log(hash);
Example 3: md5 checksum javascript
const crypto = require('crypto')
crypto.createHash('md5').update('hello world').digest('hex')