Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2021 Changes in this version + var ErrEmptyPayload = errors.New("empty payload") + var ErrInvalidIvLen = errors.New("cipher text does not contain a valid initialization vector length") + func DecryptBytes(key string, ciphertextBytes []byte) ([]byte, error) + func DecryptFile(key, in, out string) error + func DecryptString(key, ciphertext string) (string, error) + func EncryptBytes(key string, plaintextBytes []byte) ([]byte, error) + func EncryptFile(key, in, out string) error + func EncryptString(key, plaintext string) (string, error)