Versions in this module Expand all Collapse all v0 v0.6.0 Aug 12, 2026 v0.5.0 Aug 12, 2026 Changes in this version + var ErrDecryptFailed = errors.New("decryption failed: wrong password or corrupted data") + type Vault struct + func New(password string) *Vault + func NewFromEnv() (*Vault, error) + func (v *Vault) Decrypt(data []byte) ([]byte, error) + func (v *Vault) Encrypt(plaintext []byte) ([]byte, error) + func (v *Vault) LoadFile(path string, dst any) error + func (v *Vault) SaveFile(path string, data any) error