Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESEncryptor ¶
type AESEncryptor struct{}
AESEncryptor implements AES encryption/decryption
func NewAESEncryptor ¶
func NewAESEncryptor() *AESEncryptor
func (*AESEncryptor) Decrypt ¶
func (e *AESEncryptor) Decrypt(key []byte, data []byte) ([]byte, error)
Decrypt decrypts data using AES-GCM
func (*AESEncryptor) Encrypt ¶
func (e *AESEncryptor) Encrypt(key []byte, data []byte) ([]byte, error)
Encrypt encrypts data using AES-GCM with a random nonce
func (*AESEncryptor) Name ¶ added in v0.8.0
func (e *AESEncryptor) Name() string
Click to show internal directories.
Click to hide internal directories.