Created
September 22, 2014 07:29
-
-
Save adkdev/ab571a6d32120054e197 to your computer and use it in GitHub Desktop.
Node.js create md5 hash from utf-8 string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var string = "Sawasdee --> สวัสดี"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(string, 'utf8').digest("hex"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment