Skip to content

Instantly share code, notes, and snippets.

@42LM
Created September 9, 2025 11:35
Show Gist options
  • Select an option

  • Save 42LM/fb4b048f0a22cc723c3dc92cff2f1c2f to your computer and use it in GitHub Desktop.

Select an option

Save 42LM/fb4b048f0a22cc723c3dc92cff2f1c2f to your computer and use it in GitHub Desktop.
go MD5
package main
import (
"crypto/md5"
"encoding/hex"
"fmt"
)
func main() {
data := "145e86eb6a0e34d608f8ccbea57eb801"
hash := md5.Sum([]byte(data))
hashString := hex.EncodeToString(hash[:])
fmt.Println("MD5 Hash:", hashString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment