Created
March 2, 2014 18:20
-
-
Save b1naryth1ef/9311077 to your computer and use it in GitHub Desktop.
Converts a 64bit steamid to 32bit, and vice-versa
This file contains 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
def convert(id): | |
if len(id) == 17: | |
return int(id[3:]) - 61197960265728 | |
else: | |
return '765' + str(int(x) + 61197960265728) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment