65 lines
1.5 KiB
Python
65 lines
1.5 KiB
Python
"""Captured local runtime profile values.
|
|
|
|
These values are not algorithm constants:
|
|
|
|
- `CLIENT_SALT` is account/login-state bound.
|
|
- `API_ST` is session/login-state bound.
|
|
- `DID`, `ODID`, `RDID`, and `EGID` are device/runtime bound.
|
|
|
|
Keep callers explicit about using this captured profile so the algorithms can
|
|
be reused with another account/device by replacing the profile.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class CapturedProfile:
|
|
client_salt: str
|
|
api_st: str
|
|
did: str
|
|
odid: str
|
|
rdid: str
|
|
egid: str
|
|
client_key: str
|
|
|
|
|
|
CLIENT_SALT = "b038748080d4cbca37c31dd04ab28347"
|
|
API_ST = (
|
|
"Cg9rdWFpc2hvdS5hcGkuc3QSoAHruwqKqtHqy9AfyGdOFYNACJ80v0TMYoQNeZ1INbsRZo94r6mt9M"
|
|
"58VJZX5pNQUix3Euqtsf8W3AOaWRCH_NWklCNumaTQFy6hxrZi8lp3y7p68SIxs6fYL1y17X--7xRAo"
|
|
"ICgzoB_nnFNrlkpZfFWeNb7v06hjOgbXg9-jKghvz7ynDibTmweN-saijRFyrmdG-hkspXD06BN_HdM"
|
|
"gjolGhJmQmJkX-pJEqgjQbtJv1UuVkwiIBjICjT6OhpE1pECamctILXHVG8-uA3qXY0e0wjkxe0RKAUwAQ"
|
|
)
|
|
DID = "ANDROID_e8dfd2f16b618053"
|
|
ODID = "ANDROID_46a032e0a2af8184"
|
|
RDID = "ANDROID_741de4351c44850d"
|
|
EGID = "DFPD710405C930763A0611ED55B32863566E86B8C7D3438B8BDE60EAB9F54037"
|
|
CLIENT_KEY = "2ac2a76d"
|
|
|
|
|
|
CAPTURED_PROFILE = CapturedProfile(
|
|
client_salt=CLIENT_SALT,
|
|
api_st=API_ST,
|
|
did=DID,
|
|
odid=ODID,
|
|
rdid=RDID,
|
|
egid=EGID,
|
|
client_key=CLIENT_KEY,
|
|
)
|
|
|
|
|
|
__all__ = [
|
|
"API_ST",
|
|
"CAPTURED_PROFILE",
|
|
"CLIENT_KEY",
|
|
"CLIENT_SALT",
|
|
"CapturedProfile",
|
|
"DID",
|
|
"EGID",
|
|
"ODID",
|
|
"RDID",
|
|
]
|