Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PasswordHashLen - Seed Len in bytes. PasswordHashLen = 32 // PasswordNonce - Password nonce. PasswordNonce = "экзистенциальный кризис трансцендентального эго" )
View Source
const ( DefaultArgon2Times = 1 DefaultArgon2Mem = 64 * 1024 DefaultArgon2Threads = 4 DefaultArgon2SaltLen = 16 // bytes )
Argon2 constants.
Variables ¶
This section is empty.
Functions ¶
func NewPasswordHash ¶
NewPasswordHash - generate a salt and a password hash using Argon2 with gnerated salt.
func PasswordHash ¶
PasswordHash - generate a password hash using Argon2.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.