Versions in this module Expand all Collapse all v2 v2.0.2 May 19, 2024 v2.0.1 Apr 7, 2024 Changes in this version + type Algorithm interface + Copy func() Algorithm + Decrypt func(payload []byte) ([]byte, error) + Encrypt func(payload []byte) ([]byte, error) + Key func() []byte + SetKey func(key []byte) error + type Dummy struct + func NewDummyEncryption() *Dummy + func (d *Dummy) Copy() Algorithm + func (d *Dummy) Decrypt(payload []byte) ([]byte, error) + func (d *Dummy) Encrypt(payload []byte) ([]byte, error) + func (d *Dummy) Key() []byte + func (d *Dummy) SetKey(key []byte) error + type QuazalRC4 struct + func NewQuazalRC4Encryption() *QuazalRC4 + func (r *QuazalRC4) Copy() Algorithm + func (r *QuazalRC4) Decrypt(payload []byte) ([]byte, error) + func (r *QuazalRC4) Encrypt(payload []byte) ([]byte, error) + func (r *QuazalRC4) Key() []byte + func (r *QuazalRC4) SetKey(key []byte) error + type RC4 struct + func NewRC4Encryption() *RC4 + func (r *RC4) Copy() Algorithm + func (r *RC4) Decrypt(payload []byte) ([]byte, error) + func (r *RC4) Encrypt(payload []byte) ([]byte, error) + func (r *RC4) Key() []byte + func (r *RC4) SetKey(key []byte) error