EncodeBase64String Base64Encode encodes the given string to base64
(str string)
| 7 | |
| 8 | // EncodeBase64String Base64Encode encodes the given string to base64 |
| 9 | func EncodeBase64String(str string) string { |
| 10 | return base64.StdEncoding.EncodeToString([]byte(str)) |
| 11 | } |
| 12 | |
| 13 | // DecodeBase64String decode the base64 string return string |
| 14 | func DecodeBase64String(str string) string { |