Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import (
- "crypto/md5"
- "encoding/hex"
- )
- // GetMD5Hash get hash of the text
- func GetMD5Hash(text string) string {
- hash := md5.New()
- hash.Write([]byte(text))
- return hex.EncodeToString(hash.Sum(nil))
- }
Add Comment
Please, Sign In to add comment