Skip to content

Instantly share code, notes, and snippets.

@Epikem
Created February 27, 2018 13:04
Show Gist options
  • Save Epikem/56d591884e8c883875b417785bc3a2ff to your computer and use it in GitHub Desktop.
Save Epikem/56d591884e8c883875b417785bc3a2ff to your computer and use it in GitHub Desktop.
const crypto = require('crypto');
function hash (password) {
return crypto.createHmac('sha256', secret).update(password).digest('hex');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment