TritonDataCenter / node-http-signature

Reference implementation of Joyent's HTTP Signature Scheme
https://tritondatacenter.com
MIT License
404 stars 118 forks source link

Allow for non-string HMAC keys #98

Closed jasonbking closed 4 years ago

jasonbking commented 4 years ago

Currently, the verifyHMAC function only accepts a string as secret. However as far back at least as node v0.10, the crypto hmac function also accepts a Buffer (allowing for keys that are raw binary values). verifyHMAC should also allow them