MiniappGoService/pkg/hashText/encode.go

13 lines
180 B
Go

package hashText
import "encoding/base64"
func Encode(
text, salt string,
) string {
text = base64.StdEncoding.EncodeToString([]byte(text))
text = text + salt
return text
}