GetMd5String compute the md5 sum as string
(s string)
| 10 | |
| 11 | // GetMd5String compute the md5 sum as string |
| 12 | func GetMd5String(s string) string { |
| 13 | h := md5.New() |
| 14 | h.Write([]byte(s)) |
| 15 | return hex.EncodeToString(h.Sum(nil)) |
| 16 | } |
| 17 | |
| 18 | // GetRandString returns randominzed string with given length |
| 19 | func GetRandString(length int) string { |