Versions in this module Expand all Collapse all v1 v1.1.0 Aug 30, 2021 Changes in this version + type Aes struct + func (c *Aes) Decrypt(cipherData []byte) (originData []byte, err error) + func (c *Aes) Encrypt(originData []byte) (cipherData []byte, err error) type Cipher + func NewAes(key []byte) (Cipher, error) + func NewEmpty() (Cipher, error) + type Empty struct + func (e Empty) Decrypt(cipherData []byte) (originData []byte, err error) + func (e Empty) Encrypt(originData []byte) (cipherData []byte, err error) v1.0.0 Aug 27, 2021 Changes in this version + type Cipher interface + Decrypt func(cipherData []byte) (originData []byte, err error) + Encrypt func(originData []byte) (cipherData []byte, err error) + func NewCipher(key []byte) (Cipher, error)