v

import  "encoding/base64"

var str = "123456asdfgh"
strbytes := []byte(str)
encoded := base64.StdEncoding.EncodeToString(strbytes)

decoded, err := base64.StdEncoding.DecodeString(encoded)
decodestr := string(decoded)
fmt.Println(decodestr, err)

发表回复

您的电子邮箱地址不会被公开。

Captcha Code