tj / node-cookie-signature

cookie signing
MIT License
180 stars 34 forks source link

Remove redundant hashing step #23

Closed jodevsa closed 6 years ago

jodevsa commented 6 years ago

Comparing hash values of strings is slower than normally comparing strings with the equal operator.

natevw commented 6 years ago

Thanks ;-)

For the record: https://github.com/tj/node-cookie-signature/pull/14#issuecomment-33556745