minio/pkg/api/utils.go
2015-04-22 18:26:35 -07:00

15 lines
207 B
Go

package api
import (
"encoding/base64"
"strings"
)
func isValidMD5(md5 string) bool {
_, err := base64.StdEncoding.DecodeString(strings.TrimSpace(md5))
if err != nil {
return false
}
return true
}