Versions in this module Expand all Collapse all v0 v0.0.1 Nov 2, 2026 Changes in this version + var ErrDecryptionFailed = &Error + var ErrEncryptionFailed = &Error + var ErrExpansionLimit = errors.New("expansion limit exceeded") + var ErrInvalidPrivateKey = &Error + var ErrInvalidPublicKey = &Error + var ErrMissingPrivateKey = &Error + var ErrReferenceCycle = errors.New("reference cycle") + var ErrWrongPrivateKey = &Error + func Decrypt(privateKey, value string) (string, error) + func Encrypt(publicKey, value string) (string, error) + func GenerateKeypair() (privateKey, publicKey string) + func Load(files ...string) error + func Overload(files ...string) error + func Parse(r io.Reader) (map[string]string, error) + func PublicKey(privateKey string) (string, error) + func Read(files ...string) (map[string]string, error) + type Error struct + Code string + Err error + Message string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type Options struct + DisableCommandSubstitution bool + Env []string + KeyFiles []string + KeyProvider func(publicKey string) (privateKey string, err error) + Overload bool + func (o Options) Load(files ...string) error + func (o Options) Parse(r io.Reader) (map[string]string, error) + func (o Options) Read(files ...string) (map[string]string, error)