Documentation
¶
Index ¶
- func BuildShortNonceWithPadding(intPrefix int64, baseToken string) string
- func ComparePasswordHash(password string, passwordHash string) bool
- func GUID() string
- func GenerateNonceFromString(str string) string
- func GeneratePasswordHash(password string) string
- func GenerateRandomString(stringLen int) string
- func GenerateRandomStringUpperOnly(stringLen int) string
- func ShortID() string
- func ShortNonceWithPadding(intPrefix int64, tokenLen int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildShortNonceWithPadding ¶
BuildShortNonceWithPadding generates a nonce from a baseToken and an integer prefix
func ComparePasswordHash ¶
ComparePasswordHash compares a password and a password hash
func GenerateNonceFromString ¶
GenerateNonceFromString generates a sha1 encoded string from another string
func GeneratePasswordHash ¶
GeneratePasswordHash generates a password hash from a string password
func GenerateRandomString ¶
GenerateRandomString returns a randomized string
func GenerateRandomStringUpperOnly ¶
GenerateRandomStringUpperOnly returns a randomized string
func ShortID ¶
func ShortID() string
ShortID returns a shorter globally unique ID Uses the MongDB Object ID algorithm using base64 serialization to make it shorter
func ShortNonceWithPadding ¶
ShortNonceWithPadding generates a padded nonce
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.