Documentation ¶
Index ¶
- func AddSlashes(str string) string
- func Base64Decode(str string) string
- func Base64Encode(data string) string
- func Base64EncodeRaw(data []byte) string
- func DecryptText(ciphertext, key []byte) ([]byte, error)
- func EncryptText(text, key []byte) ([]byte, error)
- func HashStr(value string) uint32
- func MD5(data []byte) string
- func MakeTrackSecret(message string) string
- func RandomInt(min, max int) int
- func RandomString(n int) string
- func Sha256(message []byte) string
- func Sha256Hmac(message, key []byte) []byte
- func Sha512Hash(value string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSlashes ¶ added in v1.1.22
func Base64Decode ¶
func Base64Encode ¶
func Base64EncodeRaw ¶ added in v1.1.3
func DecryptText ¶
DecryptText method will decrypt the text with help of a key Ref: https://tutorialedge.net/golang/go-encrypt-decrypt-aes-tutorial/
func EncryptText ¶
EncryptText method will encrypt the text using the key provided with AES algo. Ref: https://tutorialedge.net/golang/go-encrypt-decrypt-aes-tutorial/
func MakeTrackSecret ¶
func RandomString ¶
func Sha256Hmac ¶ added in v1.1.3
func Sha512Hash ¶ added in v1.1.11
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.