Skip to content

Instantly share code, notes, and snippets.

@thegamecracks
Created February 12, 2026 02:29
Show Gist options
  • Select an option

  • Save thegamecracks/60b0063d317ebac6fc1209050f590bc2 to your computer and use it in GitHub Desktop.

Select an option

Save thegamecracks/60b0063d317ebac6fc1209050f590bc2 to your computer and use it in GitHub Desktop.
Simple conversion of steam IDs to BattlEye GUIDs
# Translated from: https://armstalker.com/guid/
import hashlib
def steam_id_to_be_guid(steam_id: int) -> str:
data = bytearray(b"BE")
for _ in range(8):
steam_id, mod = divmod(steam_id, 256)
data.append(mod)
return hashlib.md5(data).hexdigest()
def main() -> None:
while True:
print(steam_id_to_be_guid(int(input("> "))))
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment