Documentation ¶
Index ¶
Constants ¶
View Source
const HashtypeBcrypt = "bcrypt"
HashtypeBcrypt is Hashtype bcrypt
View Source
const HashtypeScrypt = "scrypt"
HashtypeScrypt is Hashtype scrypt
View Source
const SaltBufLen = 14
SaltBufLen is Salt buffer length
View Source
const WrongPasswordMessage = "wrong Password"
WrongPasswordMessage is error message
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordHash ¶
PasswordHash struct
func (PasswordHash) Compare ¶
func (ph PasswordHash) Compare(hashedpassword, password, saltstr string) error
Compare compares hashed password and string password
Click to show internal directories.
Click to hide internal directories.