Last active
September 27, 2015 10:32
-
-
Save rmtsrc/ca9d88e2844be8a65021 to your computer and use it in GitHub Desktop.
Node validate GitHub webhook SHA1 HMAC
This file contains 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'), | |
hmac = crypto.createHmac('sha1', 'GitHub Secret'); | |
hmac.update(GitHub_POST_data); | |
console.log('sha1=' + hmac.digest('hex')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment