// Thanks to nano2k package main import ( "crypto/md5" "fmt" ) func main() { steamid := 76561197996545192 h := md5.New() h.Write([]byte("BE")) for i := 0; i < 8; i++ { h.Write([]byte{byte(steamid & 0xFF)}) steamid >>= 8 } fmt.Printf("Battleye GUID: %x", h.Sum(nil)) }