Top 0.7% dependent packages on proxy.golang.org
Top 0.7% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/dchest/authcookie
Package authcookie implements creation and verification of signed authentication cookies. Cookie is a Base64 encoded (using URLEncoding, from RFC 4648) string, which consists of concatenation of expiration time, login, and signature: where expiration time is the number of seconds since Unix epoch UTC indicating when this cookie must expire (4 bytes, big-endian, uint32), login is a byte string of arbitrary length (at least 1 byte, not null-terminated), and signature is 32 bytes of HMAC-SHA256(expiration_time || login, k), where k = HMAC-SHA256(expiration_time || login, secret key). Example: Note that login and expiration time are not encrypted, they are only signed and Base64 encoded. For safety, the maximum length of base64-decoded cookie is limited to 1024 bytes.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/dchest/authcookie
License: MIT
Latest release: over 5 years ago
First release: over 12 years ago
Namespace: github.com/dchest
Dependent packages: 48
Dependent repositories: 63
Stars: 111 on GitHub
Forks: 12 on GitHub
Docker dependents: 13
Docker downloads: 186,204,572
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago