Fix: platform agnostic cookie#253
Fix: platform agnostic cookie#253SaltyAom merged 5 commits intoelysiajs:mainfrom Mkassabov:fix/platform-agnostic-cookie
Conversation
|
Worth noting that
The safer strategy is double-hmac. Since cookies are signed with HMAC we are already performing double-hmac by checking against the signed version of the cookie. The only real security improvement we could make would be to perform hmac again with a randomly generated key (as a lot of double hmac solutions do), but that would probably make the unsign function twice as slow for a negligible security benefit. Things we could do
further reading:
P.S. I don't know like anything about cryptography this is just what I've learned in the last 2 days trying to figure out what timing safe equal is and how/if I should polyfill it somehow. More than happy to make any changes here. |
What this does
cookie-signaturelibrary in favor of new utilsAddresses