Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Password ¶
type Password struct { Key []byte // Hashed key. Salt []byte Time uint32 Memory uint32 Threads uint8 KeyLen uint32 }
Password saves the password hashed with Argon2 algorithm.
func NewPassword ¶
NewPassword creates a new password encrypted by argon2 algorithm.
func (*Password) CheckString ¶
CheckString checks if the password matches the given string.
Click to show internal directories.
Click to hide internal directories.