Created
October 18, 2017 10:44
-
-
Save theikkila/7a37ad40d0eaabf690946227be0de93e to your computer and use it in GitHub Desktop.
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 ( | |
"fmt" | |
"io" | |
"crypto/md5" | |
) | |
func md5hex(d string) string { | |
h := md5.New() | |
io.WriteString(h, d) | |
return fmt.Sprintf("%x", h.Sum(nil)) | |
} | |
func main() { | |
fmt.Println(md5hex("85.157.236.100" + "|" + "Dalvik/2.1.0 (Linux## U## Android 6.0.1## SM-J510FN Build/MMB29M)")) | |
} |
Author
theikkila
commented
Oct 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment