README ¶ crypto AFAIRE Licence MIT. Copyright (c) 2021-2022 losyme Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Crypto func New() *Crypto func (c *Crypto) Decrypt(data []byte) ([]byte, error) func (c *Crypto) DecryptString(text string) (string, error) func (c *Crypto) Encrypt(data []byte) ([]byte, error) func (c *Crypto) EncryptString(text string) (string, error) func (c *Crypto) SetKey(key string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Crypto ¶ type Crypto struct { // contains filtered or unexported fields } func New ¶ func New() *Crypto func (*Crypto) Decrypt ¶ func (c *Crypto) Decrypt(data []byte) ([]byte, error) func (*Crypto) DecryptString ¶ func (c *Crypto) DecryptString(text string) (string, error) func (*Crypto) Encrypt ¶ func (c *Crypto) Encrypt(data []byte) ([]byte, error) func (*Crypto) EncryptString ¶ func (c *Crypto) EncryptString(text string) (string, error) func (*Crypto) SetKey ¶ func (c *Crypto) SetKey(key string) error Source Files ¶ View all Source files crypto.go Click to show internal directories. Click to hide internal directories.