Skip to content

Instantly share code, notes, and snippets.

@fwon
Created December 13, 2016 11:33
Show Gist options
  • Save fwon/921766d7a6ed29dbc26b816db774bab7 to your computer and use it in GitHub Desktop.
Save fwon/921766d7a6ed29dbc26b816db774bab7 to your computer and use it in GitHub Desktop.
获取字符串的md5值
crypto.createHash('md5').update(text).digest('hex')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment