Versions in this module Expand all Collapse all v0 v0.2.0 Aug 22, 2026 v0.1.0 Aug 12, 2026 Changes in this version + const ExtensionKey + var ErrCiphertext = errors.New("protect: this value is marked as a secret and the protection failed on it") + var ErrNoProtection = errors.New("protect: there is no DPAPI-NG here") + var ErrNotDeclared = errors.New("protect: the registry was not given protect.Extension()") + var ErrOption = errors.New("protect: unusable decorator option") + func Extension() ferry.KeyExtension + func Over(src ferry.Source, d Descriptor, sel Selector, opts ...Option) ferry.Source + func OverSink(dst ferry.Sink, d Descriptor, sel Selector, opts ...Option) ferry.Sink + type Descriptor string + const CurrentUser + const LocalMachine + const LocalSystem + type Option interface + func Using(p Protector) Option + type Protector interface + Protect func(ctx context.Context, descriptor string, plaintext []byte) ([]byte, error) + Unprotect func(ctx context.Context, ciphertext []byte) ([]byte, error) + type Selector interface + func FromTags() Selector