package
Version:
v2.0.2
Opens a new window with list of versions in this module.
Published: Apr 14, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CheckPasswordHash compares a plain-text password with a stored hash (JSON encoded).
HashPassword generates a secure Argon2ID hash for the given password and parameters.
type Hash struct {
Data []byte `json:"data"`
Salt []byte `json:"salt"`
Params *Params `json:"params"`
}
type Params struct {
Memory uint32 `json:"m"`
Iterations uint32 `json:"i"`
Parallelism uint8 `json:"p"`
SaltLength uint32 `json:"s"`
KeyLength uint32 `json:"k"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.