Versions in this module Expand all Collapse all v1 v1.2.1 Oct 12, 2025 Changes in this version + type AES256GCM struct + func (r *AES256GCM) Decrypt(payload string) ([]byte, error) + func (r *AES256GCM) Encrypt(plaintext []byte) (string, error) type Crypter + func NewAES256GCM(key []byte) (Crypter, error) v1.2.0 Aug 1, 2025 Changes in this version + type Crypter interface + Decrypt func(payload string) ([]byte, error) + Encrypt func(plaintext []byte) (string, error) + func NewXChacha20Poly1305(key []byte) (Crypter, error) + type XChacha20Poly1305 struct + func (r *XChacha20Poly1305) Decrypt(payload string) ([]byte, error) + func (r *XChacha20Poly1305) Encrypt(plaintext []byte) (string, error)