Documentation
¶
Index ¶
Constants ¶
View Source
const ( PASSWORD_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#%^&*()_-+=<>?/|" BCRYPT_COST = 10 )
Variables ¶
This section is empty.
Functions ¶
func GeneratePassword ¶
GeneratePassword generates a random password
func GenerateRandString ¶ added in v0.18.6
GenerateRandString generates a random string of the given length using crypto/rand, with each character drawn from charsAllowed
func GenerateRandomKey ¶ added in v0.15.3
func GenerateSessionNonce ¶ added in v0.15.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.