Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Created March 2, 2014 18:20
Show Gist options
  • Save b1naryth1ef/9311077 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/9311077 to your computer and use it in GitHub Desktop.
Converts a 64bit steamid to 32bit, and vice-versa
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