Created
January 8, 2012 17:50
-
-
Save kitek/1579117 to your computer and use it in GitHub Desktop.
NodeJS create md5 hash from 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 data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@leafyshark calm down brother, there are absolutely many use-cases for hashing, these are some obvious, to validate the integrity of some data: