https://github.com/xtekky/x-ss-stub
TikTok x-ss-stub algorithm analysis | encryption algorithm
https://github.com/xtekky/x-ss-stub
algorithms signatures tiktok tiktok-api tiktok-signature x-gorgon x-khronos x-ss-stub xgorgon
Last synced: 3 months ago
JSON representation
TikTok x-ss-stub algorithm analysis | encryption algorithm
- Host: GitHub
- URL: https://github.com/xtekky/x-ss-stub
- Owner: xtekky
- Created: 2022-07-19T00:54:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T01:10:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T18:21:21.014Z (4 months ago)
- Topics: algorithms, signatures, tiktok, tiktok-api, tiktok-signature, x-gorgon, x-khronos, x-ss-stub, xgorgon
- Language: Python
- Homepage: https://discord.gg/onlp
- Size: 1.95 KB
- Stars: 24
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
If u debug TikTok api requests, sometimes you encounter the x-ss-stub param on post requests and wonder what it is, well here is an in-depth analysis, enjoy.

#### Encryption algorithm:
- Couldn't be simpler, its an md5 hash, in uppercase
#### Encrypted data:
- The encrypted data is the urlencoded post data/body
#### use case:
- x-ss-stub may be required as encryption key/param for some algorithms such as x-gorgon#### python script to generate x-ss-stub:
```python
import hashlibdata = "password=4z6d6f6c75604535313434&account_sdk_source=app&username=7d7xx0ze6exx&mix_mode=1&multi_login=1"
print(str(hashlib.md5(data.encode()).hexdigest()).upper())
```