Documentation
¶
Index ¶
- type AESDriver
- func (d *AESDriver) Decrypt(payload string) (string, error)
- func (d *AESDriver) DecryptBytes(payload string) ([]byte, error)
- func (d *AESDriver) Encrypt(plaintext string) (string, error)
- func (d *AESDriver) EncryptBytes(plaintext []byte) (string, error)
- func (d *AESDriver) GenerateKey() (string, error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESDriver ¶
type AESDriver struct {
// contains filtered or unexported fields
}
AESDriver implements AES encryption with CBC and GCM modes
func NewAESDriver ¶
NewAESDriver creates a new AES driver
func (*AESDriver) DecryptBytes ¶
DecryptBytes decrypts a payload to bytes
func (*AESDriver) EncryptBytes ¶
EncryptBytes encrypts bytes
func (*AESDriver) GenerateKey ¶
GenerateKey generates a new encryption key
Click to show internal directories.
Click to hide internal directories.