Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefaultEncrypter ¶
InitDefaultEncrypter initializes the global encrypter.
Types ¶
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
Encrypter providing AES-256-GCM crypto.
var ( // DefaultEncrypter is a global encrypter used by transparently encrypted fields. DefaultEncrypter *Encrypter )
func NewEncrypter ¶
NewEncrypter creates a new encrypter with the given 32-byte key.
Click to show internal directories.
Click to hide internal directories.