Versions in this module Expand all Collapse all v1 v1.0.1 Feb 26, 2023 v1.0.0 Feb 15, 2023 Changes in this version + type Cookies interface + Read func(r *http.Request, name string) (string, error) + Write func(w http.ResponseWriter, cookie http.Cookie) error + func NewCookies(secureKey string) (Cookies, error) + type Encrypt interface + Decrypt func(es string) (string, error) + Encrypt func(s string) (string, error) + func NewEncrypt(secretKey string) (Encrypt, error) + type GCMEncrypt struct + func (e *GCMEncrypt) Decrypt(es string) (string, error) + func (e *GCMEncrypt) Encrypt(s string) (string, error) + type SecureCookies struct + func (s *SecureCookies) Read(r *http.Request, name string) (string, error) + func (s *SecureCookies) Write(w http.ResponseWriter, cookie http.Cookie) error