{"id":8619022,"name":"github.com/2lambda123/securecookie","ecosystem":"go","description":"Package securecookie encodes and decodes authenticated and optionally\nencrypted cookie values.\n\nSecure cookies can't be forged, because their values are validated using HMAC.\nWhen encrypted, the content is also inaccessible to malicious eyes.\n\nTo use it, first create a new SecureCookie instance:\n\nThe hashKey is required, used to authenticate the cookie value using HMAC.\nIt is recommended to use a key with 32 or 64 bytes.\n\nThe blockKey is optional, used to encrypt the cookie value -- set it to nil\nto not use encryption. If set, the length must correspond to the block size\nof the encryption algorithm. For AES, used by default, valid lengths are\n16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.\n\nStrong keys can be created using the convenience function GenerateRandomKey().\n\nOnce a SecureCookie instance is set, use it to encode a cookie value:\n\nLater, use the same SecureCookie instance to decode and validate a cookie\nvalue:\n\nWe stored a map[string]string, but secure cookies can hold any value that\ncan be encoded using encoding/gob. To store custom types, they must be\nregistered first using gob.Register(). For basic types this is not needed;\nit works out of the box.","homepage":"https://github.com/2lambda123/securecookie","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/2lambda123/securecookie","keywords_array":[],"namespace":"github.com/2lambda123","versions_count":2,"first_release_published_at":"2017-02-24T19:38:04.000Z","latest_release_published_at":"2023-10-18T11:18:40.000Z","latest_release_number":"v1.1.2","last_synced_at":"2026-03-25T02:53:31.572Z","created_at":"2023-12-05T01:35:44.569Z","updated_at":"2026-03-25T02:53:31.572Z","registry_url":"https://pkg.go.dev/github.com/2lambda123/securecookie","install_command":"go get github.com/2lambda123/securecookie","documentation_url":"https://pkg.go.dev/github.com/2lambda123/securecookie#section-documentation","metadata":{},"repo_metadata":{"uuid":"726923178","full_name":"2lambda123/securecookie","owner":"2lambda123","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-03T20:20:05.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-03T21:21:22.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2lambda123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-03T19:44:20.000Z","updated_at":"2023-12-03T21:21:28.519Z","dependencies_parsed_at":"2023-12-03T21:21:25.986Z","dependency_job_id":null,"html_url":"https://github.com/2lambda123/securecookie","commit_stats":null,"previous_names":["2lambda123/securecookie"],"tags_count":3,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fsecurecookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fsecurecookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fsecurecookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2Fsecurecookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2lambda123","download_url":"https://codeload.github.com/2lambda123/securecookie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":174677126,"owners_count":10149295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"repo_metadata_updated_at":"2023-12-05T01:35:48.891Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":10.771707882697278,"dependent_packages_count":9.555904237689512,"stargazers_count":25.34783379277267,"forks_count":18.880903912260273,"docker_downloads_count":null,"average":16.139087456354932},"purl":"pkg:golang/github.com/2lambda123/securecookie","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/2lambda123/securecookie","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/2lambda123/securecookie","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/2lambda123/securecookie/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fsecurecookie/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fsecurecookie/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fsecurecookie/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fsecurecookie/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2Fsecurecookie/codemeta","maintainers":[]}