Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argon ¶
Argon represents a password has created using Argon2ID key derivation
func (*Argon) HashPassword ¶
HashPassword creates a new password hash for the given password, using the parameters from this hash (including salt)
type Hash ¶
type Hash interface { String() string // HashPassword creates a new password hash for the given password, using the parameters from this hash // (including salt) HashPassword(string) (Hash, error) // Matches checks if the given password corresponds to the hash Matches(string) bool }
func FromString ¶
FromString tries to read a hashed password from its string representation The stored hash has to be encoded by any of the functions supported by PartMATE (currently Argon2ID)
Click to show internal directories.
Click to hide internal directories.