var string = "Sawasdee --> สวัสดี";
var crypto = require('crypto');
crypto.createHash('md5').update(string, 'utf8').digest("hex");