Created
March 7, 2019 02:04
-
-
Save larry1001/abd0b5070f8e5b8ce882058261fd8a05 to your computer and use it in GitHub Desktop.
nodejs中md5加密并输出hex
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
const data = "do shash'owania"; | |
const 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