Versions in this module Expand all Collapse all v0 v0.3.0 Aug 16, 2026 v0.2.0 Aug 7, 2026 Changes in this version + var ErrPlaintextTooLarge = errors.New("secrets: plaintext is too large for this cipher") + type Cipher interface + Decrypt func(ctx context.Context, ciphertext []byte, keyID string) ([]byte, error) + Encrypt func(ctx context.Context, plaintext []byte) (ciphertext []byte, keyID string, err error)