Guest User

Untitled

a guest
Aug 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import (
  2. "crypto/md5"
  3. "encoding/hex"
  4. )
  5.  
  6. // GetMD5Hash get hash of the text
  7. func GetMD5Hash(text string) string {
  8. hash := md5.New()
  9. hash.Write([]byte(text))
  10. return hex.EncodeToString(hash.Sum(nil))
  11. }
Add Comment
Please, Sign In to add comment