Versions in this module Expand all Collapse all v1 v1.0.0 Apr 29, 2017 Changes in this version + var ERR_NOPE error = errors.New("NOPE") + var ErrUnknownMD5Prefix error = errors.New("Unknown MD5-CRYPT Prefix") + var NoMatchingDef error = errors.New("No Matching Definition Found") + func Register(def ...Definition) + func Set(pwd string) error + func SetDefault(def Definition) + type Crypter interface + Crypt func(pwd []byte) Crypter + Definition func() Definition + Hashed func(pwd []byte) Crypter + Options func() map[string]interface{} + Salt func(salt []byte) Crypter + Verify func(pwd []byte) bool + func CrypterFound() Crypter + type Definition interface + Crypt func(pwd, salt []byte, options map[string]interface{}) string + CrypterFound func(string) (Crypter, bool) + Default func() Crypter + Options func() map[string]interface{} + SetOptions func(map[string]interface{}) Definition + String func() string + var APR1 Definition = md5driver{ ... } + var BCRYPT Definition = register(bcryptdriver{ ... }) + var MD5 Definition = md5driver{ ... } + var SHA256 Definition = register(sha256driver{ ... }) + var SHA512 Definition = register(sha512driver{ ... }) + type Factory struct + CustomFlagHelper func([]string) string + func (c *Factory) CrypterFound() Crypter + func (c *Factory) FlagHelper() string + func (c *Factory) Register(def ...Definition) + func (c *Factory) Set(pwd string) error + func (c *Factory) SetDefault(def Definition) + func (c *Factory) String() string + func (p *Factory) MarshalText() ([]byte, error) + func (p *Factory) UnmarshalText(text []byte) error Other modules containing this package github.com/nathanaelle/password/v2