Documentation ¶
Index ¶
- func ConstantTimeCmp(a, b string) bool
- func GenerateRandomBytes(size int) []byte
- func GenerateRandomString(size int) string
- func GenerateRandomStringHex(size int) string
- func GenerateSHA256Hmac(secret string, data []byte) string
- func GenerateUUID() string
- func Hash(value string) string
- func HashFromBytes(value []byte) string
- func HashPassword(password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantTimeCmp ¶ added in v2.1.1
func GenerateRandomBytes ¶
GenerateRandomBytes returns random bytes.
func GenerateRandomString ¶
GenerateRandomString returns a random string.
func GenerateRandomStringHex ¶
GenerateRandomStringHex returns a random hexadecimal string.
func GenerateSHA256Hmac ¶ added in v2.0.48
func GenerateUUID ¶ added in v2.1.1
func GenerateUUID() string
func HashFromBytes ¶
HashFromBytes returns a SHA-256 checksum of the input.
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.