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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of cookies

cookies

Photo of cookie

cookie

Photo of Happiness

Happiness

Related news:

News photo

Human Life

News photo

We and our 838 partners use cookies

News photo

Info-stealers can steal cookies for permanent access to your Google account