encrypt.go 183 B

123456789
  1. package main
  2. import "encoding/base64"
  3. func b64encode(str string) string {
  4. strbytes := []byte(str)
  5. encoded := base64.StdEncoding.EncodeToString(strbytes)
  6. return string(encoded)
  7. }