Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pbkdf2Hash256 ¶
Pbkdf2Hash256 returns a PBKDF2-SHA256 hash of the given password.
Example usage:
saltSize := 16 salt, err := libcrypto.GenerateSalt(saltSize) if err != nil { panic(err) } passwordHash := hash.Pbkdf2Hash256("password", salt, 100000)
func Pbkdf2Hash512 ¶
Pbkdf2Hash512 returns a PBKDF2-SHA512 hash of the given password.
Example usage:
saltSize := 16 salt, err := GenerateSalt(saltSize) if err != nil { panic(err) } passwordHash := hash.Pbkdf2Hash512("password", salt, 100000)
func Pbkdf2Match256 ¶
Pbkdf2Match256 validates the given password against the given hash (256-bit hash).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.