Documentation
¶
Overview ¶
Package encryption encrypts credentials an application stores in its database, such as provider API keys, with the application's master key.
It protects a leaked database file or backup, not a compromised running server. Losing the master key loses every value encrypted with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDecrypt = errors.New("encryption: cannot decrypt value")
ErrDecrypt means the value was altered, encrypted under another label, or encrypted with another key.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key encrypts and decrypts values with AES-256-GCM.
Click to show internal directories.
Click to hide internal directories.