github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/internal/utils/crypto/crypto.go (about) 1 package crypto 2 3 import ( 4 "encoding/base64" 5 ) 6 7 func Base64Encode(pwd string) string { 8 return base64.StdEncoding.EncodeToString([]byte(pwd)) 9 }