Documentation ¶
Index ¶
- func CompareHashWithPassword(hash, password string) (bool, error)
- func GenerateSaltedHash(random io.Reader, password string) (string, error)
- func GenerateSaltedHashWithType(random io.Reader, password string, typ Argon2Type) (string, error)
- func GenerateSaltedHashWithTypeAndOpts(random io.Reader, password string, typ Argon2Type, opt Opts) (string, error)
- type Argon2Type
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashWithPassword ¶
Compare Hash With Password
func GenerateSaltedHash ¶
Generate Salted Hash
func GenerateSaltedHashWithType ¶
Generate Salted Hash with type
func GenerateSaltedHashWithTypeAndOpts ¶
func GenerateSaltedHashWithTypeAndOpts(random io.Reader, password string, typ Argon2Type, opt Opts) (string, error)
Generate Salted Hash with type and opts
Types ¶
type Argon2Type ¶
type Argon2Type uint
Argon2 Type enum
const ( Argon2d Argon2Type = iota Argon2i Argon2id )
func (Argon2Type) String ¶
func (typ Argon2Type) String() string
Click to show internal directories.
Click to hide internal directories.