Skip to content

Instantly share code, notes, and snippets.

@normancapule
Created August 23, 2016 16:35
Show Gist options
  • Save normancapule/9d48326d6faeaf9b65722ff777f6d3b7 to your computer and use it in GitHub Desktop.
Save normancapule/9d48326d6faeaf9b65722ff777f6d3b7 to your computer and use it in GitHub Desktop.
HmacSha1 utf8
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