Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "crypto/md5"
- "encoding/hex"
- "fmt"
- "math/big"
- )
- func main() {
- bi := big.NewInt(0)
- h := md5.New()
- h.Write([]byte("hello world"))
- hexstr := hex.EncodeToString(h.Sum(nil))
- bi.SetString(hexstr, 16)
- fmt.Println(bi.String())
- }
Add Comment
Please, Sign In to add comment