Versions in this module Expand all Collapse all v1 v1.0.6 Jan 11, 2025 Changes in this version + type Config map[string]string + func (c Config) Get(name string) string + func (c Config) Set(name, value string) Config + type Configurator interface + Setup func(input ...any) Config + type Encrypter interface + Decrypt func(config Config, content io.Reader) (io.Reader, error) + Encrypt func(config Config, content io.Reader) (io.Reader, error) + type Hasher interface + Hash func(config Config, password string) (string, error) + Verify func(config Config, hashedPassword, password string) bool + type Keeper struct + func (k *Keeper) Decrypt(content io.Reader) (io.Reader, error) + func (k *Keeper) Encrypt(content io.Reader) (io.Reader, error) + func (k *Keeper) Hash(password string) (string, error) + func (k *Keeper) SetConfigurator(c Configurator) *Keeper + func (k *Keeper) SetEncrypter(e Encrypter) *Keeper + func (k *Keeper) SetHasher(h Hasher) *Keeper + func (k *Keeper) Setup(input ...any) *Keeper + func (k *Keeper) Verify(hashedPassword, password string) bool