Versions in this module Expand all Collapse all v0 v0.4.8 Oct 21, 2022 v0.4.7 Sep 23, 2022 Changes in this version + const ChunkSize v0.4.6 Sep 9, 2022 Changes in this version + const CHUNK_SIZE + func NewDecoder(reader io.Reader, iv []byte, symKey []byte) *decoder + func NewEncoder(reader io.Reader) *encoder + func RandomKey(n int) ([]byte, error) + type Cipher struct + Iv []byte + SymKey []byte + func NewDeCipher(iv []byte, symKey []byte) (Cipher, error) + func NewEnCipher() (Cipher, error) + func (c *Cipher) Decrypt(encrypted []byte) ([]byte, error) + func (c *Cipher) Encrypt(unencrypted []byte, n int) ([]byte, error) + type IChipher interface + Decrypt func() + Encrypt func()