Created
March 22, 2019 00:46
-
-
Save davalapar/291142144ad10bbc13e2aa9c25f25f08 to your computer and use it in GitHub Desktop.
sha256.js
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'); | |
const sha256 = s => crypto.createHash('sha256').update(s, 'utf8').digest('hex'); | |
module.exports = { sha256 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment