Created
August 23, 2016 16:35
-
-
Save normancapule/9d48326d6faeaf9b65722ff777f6d3b7 to your computer and use it in GitHub Desktop.
HmacSha1 utf8
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
var crypto = require('crypto'), text = 'Sourcepad123', key = 'V;S;WhgdG5lOj16ogxH8f$$P00n.qV$$JDWVkpUjqu', hash | |
hash = crypto.createHmac('sha1', key).update(new Buffer(text, 'utf-8')).digest('utf8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment