Documentation
¶
Overview ¶
Package secret encrypts small at-rest values (VPS passwords and SSH keys) with a machine-local key, so a leaked database does not hand over the credentials it stores.
The key lives in ~/.antares/.secretkey (0600), generated on first use. This protects against a database read alone; someone with the key file and the DB can still decrypt, which is the right trade-off for a single-machine tool — the key never leaves the box and is not in the DB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
Box encrypts and decrypts with a single AES-256-GCM key.
func Default ¶
Default returns the process-wide Box keyed from ~/.antares/.secretkey, creating the key on first use. Subsequent calls return the same Box.