Created
January 23, 2014 11:22
-
-
Save theotow/8577001 to your computer and use it in GitHub Desktop.
binary md5 hashing in nodejs
This file contains hidden or 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 md5 = crypto.createHash('md5').update(string).digest('binary'); | |
| md5 = new Buffer(md5, "binary").toString('base64'); |
const md5 = crypto.createHash('md5').update(string, "binary").digest('base64');
It's maybe better.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well Done!