Skip to content

Instantly share code, notes, and snippets.

@mattrobenolt
Created November 3, 2011 22:25
Show Gist options
  • Save mattrobenolt/1338095 to your computer and use it in GitHub Desktop.
Save mattrobenolt/1338095 to your computer and use it in GitHub Desktop.
function unsign_value(signature, value)
{
var hmac = crypto.createHmac('sha1', CONFIG.secret_key);
hmac.update(value);
return signature === hmac.digest('hex');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment