Documentation
¶
Overview ¶
Package crypto provides authenticated symmetric encryption (AES-256-GCM) for secrets stored at rest, such as registry credentials. The key is generated once and persisted alongside the other server secrets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher seals and opens short secrets with AES-GCM. The nonce is random per message and prepended to the ciphertext; output is base64 for DB storage.
Click to show internal directories.
Click to hide internal directories.