Versions in this module Expand all Collapse all v0 v0.2.1 Nov 26, 2019 Changes in this version + const Argon + const Argon2Custom + const Argon2i + const Argon2id + const Argon2idDefault + const Argon2idParanoid + const Bcrypt + const BcryptCustom + const BcryptDefault + const BcryptParanoid + const ErrHash + const ErrMismatch + const ErrParse + const ErrUnsafe + const ErrUnsupported + const Scrypt + const ScryptCustom + const ScryptDefault + const ScryptParanoid + func Compare(hashed, password []byte) error + type Argon2Params struct + Keylen uint32 + Masked bool + Memory uint32 + Saltlen uint32 + Thread uint8 + Time uint32 + Version int + type BcryptParams struct + Cost int + Masked bool + type Error string + func (e Error) Error() string + type HashProfile int + type Profile struct + func New(profile HashProfile) (*Profile, error) + func NewCustom(params interface{}) (*Profile, error) + func NewMasked(profile HashProfile) (*Profile, error) + func (p *Profile) Compare(hashed, password []byte) error + func (p *Profile) Derive(password, salt []byte) ([]byte, error) + func (p *Profile) Hash(password []byte) ([]byte, error) + func (p *Profile) SetKey(secret []byte) error + type ScryptParams struct + Keylen uint32 + Masked bool + N uint32 + P uint32 + R uint32 + Saltlen uint32