Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func Base64EncodeRaw ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.