Documentation ¶
Index ¶
Constants ¶
View Source
const ( KDFAlgorithmV1Name = "argon2id-v1" KDFAlgorithmV1Time = 2 KDFAlgorithmV1Memory = 64 * 1024 KDFAlgorithmV1Thread = 4 KDFAlgorithmV1KeyLen = 64 )
View Source
const ( UserTypeNormal = "user" UserTypeAdmin = "admin" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KDF ¶
type KDF struct { Algorithm string `gorm:"type:enum('argon2id-v1')"` PasswordHash []byte `gorm:"size:64"` Salt []byte `gorm:"size:64"` TimeFactor uint32 MemoryFactor uint32 ThreadFactor uint8 KeyLen uint32 }
Click to show internal directories.
Click to hide internal directories.