Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cipepser
Created January 31, 2017 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cipepser/4c6a2e7a9d80775c78c209540a9d90ed to your computer and use it in GitHub Desktop.
Save cipepser/4c6a2e7a9d80775c78c209540a9d90ed to your computer and use it in GitHub Desktop.
func GetMD5Hash(str string) string {
hasher := md5.New()
hasher.Write([]byte(str))
return hex.EncodeToString(hasher.Sum(nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment