Registry / auth / gorilla-securecookie

gorilla-securecookie

JSON →
library1.1.2gogounverified

Package securecookie encodes and decodes authenticated and optionally encrypted cookie values.

go get github.com/gorilla/securecookie
INSTALL
IMPORT
SIG · GORILLA-SECURECOOK
G
gorilla-securecookie
authgov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

securecookie
github.com/gorilla/securecookie

Encodes a cookie value with authentication.

package main import ( "fmt" "github.com/gorilla/securecookie" ) func main() { s := securecookie.New([]byte("hash-key"), nil) encoded, _ := s.Encode("session", "user123") fmt.Println(encoded) }
Debug
Known issues
gotchaHash key must be at least 32 bytes for HMAC-SHA256.
fix
Use a cryptographically random key of sufficient length.
affects: >=0.0.0
Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
gorilla-securecookie — go get gorilla-securecookie · libregistry