# Thanks to gunlinux import md5 steamid=76561197996545192 temp = "" for i in range(8): temp += chr((steamid & 0xFF)) steamid >>= 8 m = md5.new("BE"+temp) print m.hexdigest()