Documentation ¶
Overview ¶
Package argon2 implements a Django compatible Argon2 algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashComponentUnreadable = errors.New("unchained/argon2: unreadable component in hashed password") ErrHashComponentMismatch = errors.New("unchained/argon2: hashed password components mismatch") ErrAlgorithmMismatch = errors.New("unchained/argon2: algorithm mismatch") ErrIncompatibleVersion = errors.New("unchained/argon2: incompatible version") )
Errors returned by Argon2Hasher.
Functions ¶
This section is empty.
Types ¶
type Argon2Hasher ¶
type Argon2Hasher struct { // Algorithm identifier. Algorithm string // Defines the amount of computation time, given in number of iterations. Time uint32 // Defines the memory usage (KiB). Memory uint32 // Defines the number of parallel threads. Threads uint8 // Defines the length of the hash in bytes. Length uint32 }
Argon2Hasher implements Argon2i password hasher.
func NewArgon2Hasher ¶
func NewArgon2Hasher() *Argon2Hasher
NewArgon2Hasher secures password hashing using the argon2 algorithm.
Click to show internal directories.
Click to hide internal directories.