Documentation ¶
Overview ¶
Package argon2 wraps the x/crypto/argon2 package to provide password-hashing functionality along with secure checking of hashes.
Index ¶
Constants ¶
View Source
const ( // Version is the Argon2 version implemented by the wrapped x/crypto/argon2 // package. Version = argon2.Version // SaltLen is the number of bytes used in generating salts. It is defined // purely for documentary purposes. SaltLen = 16 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Time, Memory uint32
Threads uint8
// HashLen corresponds to keyLen in the crypto/argon2 function parameters.
HashLen uint32
// contains filtered or unexported fields
}
Config carries parameters to be propagated to crypto/argon2 functions. Do not instantiate Config directly—rather use Function.Config() as it provides secure-by-default values.
Click to show internal directories.
Click to hide internal directories.