Documentation
¶
Overview ¶
Package keyringencdec provides a value encoder/decoder backed by the OS keyring. It encrypts string values with AES-256-GCM and persists the key in the OS keyring. Ensure a compatible keyring backend is available in headless/container environments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("keystore: secret not found")
Functions ¶
This section is empty.
Types ¶
type EncryptedStringValueEncoderDecoder ¶
type EncryptedStringValueEncoderDecoder struct {
// contains filtered or unexported fields
}
EncryptedStringValueEncoderDecoder uses AES-256-GCM + base64 for encoding/decoding and persists the AES key in the OS keyring under the configured service/username.
func NewEncryptedStringValueEncoderDecoder ¶
func NewEncryptedStringValueEncoderDecoder( service, username string, opts ...Option, ) (*EncryptedStringValueEncoderDecoder, error)
NewEncryptedStringValueEncoderDecoder constructs a new instance.
Click to show internal directories.
Click to hide internal directories.