Created
February 12, 2026 02:29
-
-
Save thegamecracks/60b0063d317ebac6fc1209050f590bc2 to your computer and use it in GitHub Desktop.
Simple conversion of steam IDs to BattlEye GUIDs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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