gorilla/securecookie
View on GitHub ↗ ★ 732 Go
Package gorilla/securecookie encodes and decodes authenticated and optionally encrypted cookie values for Go web applications.
7 mentions on Hacker News by 7 people: 0 stories, 7 comments · first 2013-01-01 · latest 2024-07-02
20082026
-
Well, gorilla/sessions is meant for sessions.. a more comparable package would be https://github.com/gorilla/securecookie ; And while, both can achieve the same functionality with signed cookies, the primary purpose of my package was to…
comment by syntaqx · 2024-07-02 · in syntaqx/cookie: Cookies, but with structs, for happiness -
…lots of mix-and-match pieces: https://www.gorillatoolkit.org/ , like cookie signing: https://pkg.go.dev/github.com/gorilla/securecookie I think calling Go "no framework" is kind of misleading, because I get what you're saying, but the…
comment by jerf · 2022-11-29 · in The best Go framework: no framework? -
Sign it as well! For instance: https://github.com/gorilla/securecookie Unless I'm missing something and the payload is effectively signed. Either way, I still like to have signing generically done at this level of abstraction. Then I can…
comment by whateveracct · 2021-11-12 · in Using OAuth to add authentication to a React app -
…for devs to learn & potentially disable. [1]: https://godoc.org/github.com/gorilla/csrf#Secure [2]: https://github.com/gorilla/securecookie/issues/43 [3]: https://github.com/gorilla/sessions/releases/tag/v1.1.2
comment by elithrar · 2018-09-14 · in Securing cookies in Go -
…change the code (which is simple) so that an "infinite" expiry date is no longer valid. Line 215. https://github.com/gorilla/securecookie/blob/master/secureco... As for "impossible to revoke" well if you have control over your server you…
comment by 4ydx · 2015-05-08 · in Go-bootstrap: Generates a lean and mean Go web project -
…won't work across tabs. You have to encrypt sensitive data; I use securecookie [0]. [0] http://godoc.org/github.com/gorilla/securecookie (Go)
comment by Benferhat · 2013-03-09 · in Inter-window messaging using localStorage -
The documentation is also available on GoDoc: http://godoc.org/github.com/gorilla/securecookie http://godoc.org/github.com/gorilla/mux
comment by BarkMore · 2013-01-01 · in Thoughts on Go after writing 3 websites