Versions in this module Expand all Collapse all v0 v0.1.0 May 1, 2026 Changes in this version + var ErrCiphertextNotBlockAligned = errors.New("crypt: ciphertext is not a multiple of the block size") + var ErrCiphertextTooShort = errors.New("crypt: ciphertext too short") + var ErrInvalidPadding = errors.New("crypt: invalid PKCS#7 padding") + func DecryptWithKey(key, ciphertext string) (string, error) + func EncryptWithKey(key, plaintext string) (string, error) + type Cipher struct + func New(key string) (*Cipher, error) + func (c *Cipher) Decrypt(ciphertext string) (string, error) + func (c *Cipher) Encrypt(plaintext string) (string, error)