Documentation
¶
Overview ¶
Package crypto provides AES-256-GCM encryption for secret values stored in the database.
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 handles AES-256-GCM encryption and decryption.
func LoadOrGenerateKey ¶
LoadOrGenerateKey loads an encryption key from a file, or generates a new one and writes it to that file if it doesn't exist. Returns a ready-to-use Encryptor.
func NewEncryptor ¶
NewEncryptor creates an Encryptor from a base64-encoded 32-byte key.
Click to show internal directories.
Click to hide internal directories.