Skip to content

Instantly share code, notes, and snippets.

@larry1001
Created March 7, 2019 02:04
Show Gist options
  • Save larry1001/abd0b5070f8e5b8ce882058261fd8a05 to your computer and use it in GitHub Desktop.
Save larry1001/abd0b5070f8e5b8ce882058261fd8a05 to your computer and use it in GitHub Desktop.
nodejs中md5加密并输出hex
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