Skip to content

Instantly share code, notes, and snippets.

@streamingdv
Created March 9, 2024 20:58
Show Gist options
  • Select an option

  • Save streamingdv/77c58b365e3782b92f49da9e05adb847 to your computer and use it in GitHub Desktop.

Select an option

Save streamingdv/77c58b365e3782b92f49da9e05adb847 to your computer and use it in GitHub Desktop.
PSN base64 account id converter
import base64
# Your example Base64 encoded account ID
encoded_user_id = "ppppppppppp="
# First, decode the Base64 string to bytes
user_id_bytes = base64.b64decode(encoded_user_id)
# Then, convert the bytes back to an integer
# Ensure you use the same byte order ("little" in this case) as you used when encoding
user_id = int.from_bytes(user_id_bytes, "little")
print(user_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment