Get the latest tech news
syntaqx/cookie: Cookies, but with structs, for happiness
Cookies, but with structs, for happiness. Contribute to syntaqx/cookie development by creating an account on GitHub.
This works by creating a HMAC of the value (current cookie), and base64 encoding it. You should change this signing key for your application by assigning the cookie.SigningKey variable to a secret value of your own: These options will be used as the defaults for cookies that do not strictly override them, allowing you to only set the values you care about.
Or read this on Hacker News