Guest User

Untitled

a guest
Dec 17th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "crypto/md5"
  5. "encoding/hex"
  6. "fmt"
  7. "math/big"
  8. )
  9.  
  10. func main() {
  11. bi := big.NewInt(0)
  12. h := md5.New()
  13. h.Write([]byte("hello world"))
  14. hexstr := hex.EncodeToString(h.Sum(nil))
  15. bi.SetString(hexstr, 16)
  16. fmt.Println(bi.String())
  17. }
Add Comment
Please, Sign In to add comment