Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MD5HashString ¶
MD5HashString generates a MD5 hash of the given string(s). and returns the hash as a string.
func RandomString ¶
RandomString generates a random string of the given length using the given charset(s). If no charset is provided, it will use the default charset (lowercase alpha, uppercase alpha, and numeric). The charset(s) can be any combination of the following: - charset.LowercaseAlpha - charset.UppercaseAlpha - charset.Numeric - charset.Special Example:
RandomString(10) // "aBcD3eFgH1" RandomString(10, charset.LowercaseAlpha, charset.Numeric) // "a1b2c3d4e5" RandomString(10, charset.LowercaseAlpha, charset.UppercaseAlpha) // "aBcDeFgHiJ"
func SHA256HashString ¶
MD5HashString generates a SHA256 hash of the given string(s). and returns the hash as a string.
func SHA512HashString ¶
SHA512HashString generates a SHA512 hash of the given string(s). and returns the hash as a string.
Types ¶
This section is empty.