Documentation
¶
Overview ¶
Package crypto provides authenticated symmetric encryption (AES-256-GCM) used to protect stored IRC SASL credentials at rest. The key is derived from the configured HERMES_SECRET_KEY.
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 small secrets with a fixed key.
func NewBox ¶
NewBox derives a 32-byte key from secret (via SHA-256) and returns a Box. secret must be non-empty.
func (*Box) DecryptString ¶
DecryptString is a convenience wrapper returning the decrypted string.
Click to show internal directories.
Click to hide internal directories.