Versions in this module Expand all Collapse all v0 v0.2.0 Nov 7, 2026 Changes in this version + const KeySize + var ErrInvalidKeySize = errors.New("encrypt: key must be 32 bytes (AES-256)") + type EncryptConfig struct + Key string + type EncryptService struct + Key string + func NewEncryptService(e *EncryptService) *EncryptService + func NewEncryptServiceFromConfig(cfg EncryptConfig) (*EncryptService, error) + func (e *EncryptService) Decrypt(cipherText string) (string, error) + func (e *EncryptService) Encrypt(plainText string) (string, error)