Documentation
¶
Index ¶
Constants ¶
View Source
const ( Memory = 7 * 1024 Iterations = 5 Parallelism = 1 SaltLength = 23 KeyLength = 32 )
https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
Variables ¶
View Source
var ( ErrInvalidEncodedHash = errors.New("invalid format for encoded hash") ErrUnhandledEncodedHash = errors.New("unhandled encoded hash") ErrUnhandledVersion = errors.New("unhandled version") ErrInvalidParameter = errors.New("invalid parameter") ErrHashDontMatch = errors.New("hashes don't match") )
Functions ¶
func CompareHashAndPassword ¶
func GenerateFromPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.