Documentation ¶
Index ¶
- func ComparePasswordBytes(byteHash []byte, plainPwdBytes []byte) (bool, error)
- func ComparePasswords(hashedPwd string, plainPwd string) (bool, error)
- func GenerateRandomString(n int) (string, error)
- func GenerateRandomStringFromSet(n int, charSet []byte) (string, error)
- func HashAndSaltPassword(pwd []byte) (string, error)
- func HashAndSaltPasswordString(pwd string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswordBytes ¶
ComparePasswordBytes compares hash with password
func ComparePasswords ¶
ComparePasswords compares hash with password
It is named this way for compatibility with my old projects
func GenerateRandomString ¶
GenerateRandomString uses digits and english letters to generate cryptographically secure random string
func GenerateRandomStringFromSet ¶
GenerateRandomStringFromSet uses provided set of characters to generate cryptographically secure random string
func HashAndSaltPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.