Documentation ¶
Index ¶
- Constants
- func GenerateSalt() string
- func GenerateSaltBytes() []byte
- func HashKey(b64Key string, b64ServerSalt string) (string, error)
- func HashNewKey(b64Key string) (b64HashedKey string, b64ServerSalt string, err error)
- func VerifyCredentials(storedPasswordHash string, storedServerSalt string, ...) (areCredentialsValid bool, username string, err error)
Constants ¶
View Source
const SaltSize = 32
Variables ¶
This section is empty.
Functions ¶
func GenerateSalt ¶
func GenerateSalt() string
func GenerateSaltBytes ¶
func GenerateSaltBytes() []byte
func HashNewKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.