Created
September 9, 2025 11:35
-
-
Save 42LM/fb4b048f0a22cc723c3dc92cff2f1c2f to your computer and use it in GitHub Desktop.
go MD5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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