Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParams = Params{
Iterations: 100000,
Digest: "sha256",
KeyLen: 32,
SaltLen: 16,
}
DefaultParams returns the recommended default PBKDF2 parameters. Iterations=100000, KeyLen=32
Functions ¶
Types ¶
type Params ¶
type Params struct {
// Iterations is the number of iterations.
Iterations int
// Digest is the hash function to use. Supported values: sha1, sha256, sha512.
Digest string
// SaltLen is the length of the salt.
SaltLen int
// KeyLen is the length of the derived key.
KeyLen int
}
Params defines the PBKDF2 algorithm parameters.
Click to show internal directories.
Click to hide internal directories.