Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AES256GCM ¶ added in v1.2.1
type AES256GCM struct {
// contains filtered or unexported fields
}
type Crypter ¶
type Crypter interface {
Encrypt(plaintext []byte) (string, error)
Decrypt(payload string) ([]byte, error)
}
func NewAES256GCM ¶ added in v1.2.1
NewAES256GCM returns a new AES256GCM crypt instance.
func NewXChacha20Poly1305 ¶
NewXChacha20Poly1305 returns a new XChacha20Poly1305 crypt instance.
type XChacha20Poly1305 ¶
type XChacha20Poly1305 struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.