Documentation ¶
Index ¶
- func GOBDecodedBytes(data []byte, val interface{}) error
- func GOBEncodedBytes(val interface{}) (*bytes.Buffer, error)
- func GetRandBytes(n int, alphabet ...byte) []byte
- func GetRandSecret(n int, alphabet ...byte) (string, error)
- func GetRandSecretBytes(n int, alphabet ...byte) ([]byte, error)
- func GetRandString(n int, alphabet ...byte) string
- func HashString(str, salt string) string
- func MD5(str string) string
- func MD5Bytes(str string) []byte
- func SHA1(str string) string
- func SHA1Bytes(str string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GOBDecodedBytes ¶
func GOBEncodedBytes ¶
func GetRandBytes ¶
func GetRandSecretBytes ¶
GetRandSecretBytes generate random string from a set of alphabet. This function uses CSPRNG (crypto-grade random generator) to generate a random value.
func GetRandString ¶
func HashString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.