Created
February 27, 2018 13:04
-
-
Save Epikem/56d591884e8c883875b417785bc3a2ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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