Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
type Encryptor struct {
// contains filtered or unexported fields
}
Encryptor holds the encryption key and pre-initialized AEAD instance
func NewEncryptor ¶
NewEncryptor creates a new Encryptor instance with a given key. The key must be exactly 32 bytes long for chacha20poly1305.
Click to show internal directories.
Click to hide internal directories.