Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideEncrypter, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Aesgcm ¶
type Aesgcm struct {
Compat bool
// contains filtered or unexported fields
}
Aesgcm provides an encrypter that uses the aesgcm encryption algorithm.
type Encrypter ¶
type Encrypter interface {
Encrypt(plaintext string) ([]byte, error)
Decrypt(ciphertext []byte) (string, error)
}
Encrypter provides field encryption and decryption. Encrypted values are currently limited to strings, which is reflected in the interface design.
Click to show internal directories.
Click to hide internal directories.