1var string = 'some string';
2var crypto = require('crypto');
3var hash = crypto.createHash('md5').update(string).digest('hex');
4console.log(hash);
1var crypto = require('crypto');
2var hash = crypto.createHash('md5').update(string).digest('hex');
3console.log(hash);
4