Documentation ¶
Overview ¶
Package pbkdf2 implements the PBKDF2 algorithm method used to hash passwords.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm string
Algorithm is the type of the accepted algorithms.
func (Algorithm) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
type PBKDF2 ¶
type PBKDF2 struct { // Iterations is the number of iterations to use in the PBKDF2 algorithm. Iterations int // Algorithm is the hashing algorithm used. Algorithm Algorithm // SaltLength is the length of the salt used. SaltLength int // KeyLength is the length of the desired key. KeyLength int }
PBKDF2 is a password derivation method.
Click to show internal directories.
Click to hide internal directories.