Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HashTypeSHA256 is the hash type for SHA-256 HashTypeSHA256 = "SHA256" // HashTypeSHA384 is the hash type for SHA-384 HashTypeSHA384 = "SHA384" // HashTypeSHA512 is the hash type for SHA-512 HashTypeSHA512 = "SHA512" // RandomBytesLength is length of random bytes RandomBytesLength = 64 )
Variables ¶
This section is empty.
Functions ¶
func GenerateHash ¶
GenerateHash generates a random hash based on the given hash type
func GenerateVerificationCode ¶
GenerateVerificationCode generates a verification code based on the given hash
Types ¶
Click to show internal directories.
Click to hide internal directories.