Skip to content

Instantly share code, notes, and snippets.

@techsin
Created February 23, 2018 20:57
Show Gist options
  • Save techsin/5b32249c753a67c8340477a3bad5a3be to your computer and use it in GitHub Desktop.
Save techsin/5b32249c753a67c8340477a3bad5a3be to your computer and use it in GitHub Desktop.
const crypto = require('crypto');
function hash(msg){
return crypto.createHash('sha256').update(msg).digest('hex');
}
// '24d78aedae3a0747299d9c7b93f524221aa20c73274faab1ef75f584c453fcb0'
// what did i say?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment