Skip to content

Instantly share code, notes, and snippets.

@FL4TLiN3
Created June 10, 2013 11:11
Show Gist options
  • Save FL4TLiN3/5748040 to your computer and use it in GitHub Desktop.
Save FL4TLiN3/5748040 to your computer and use it in GitHub Desktop.
さくっとhexed MD5が取りたいときに。
// node digest.js string_to_digest
var crypto = require('crypto');
var name = process.argv[2];
var hash = crypto.createHash('md5').update(name).digest("hex");
console.log(hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment