{"id":16778808,"url":"https://github.com/xtekky/x-ss-stub","last_synced_at":"2025-04-10T20:51:46.426Z","repository":{"id":46492016,"uuid":"515387348","full_name":"xtekky/x-ss-stub","owner":"xtekky","description":"TikTok x-ss-stub algorithm analysis | encryption algorithm","archived":false,"fork":false,"pushed_at":"2022-07-19T01:10:38.000Z","size":2,"stargazers_count":24,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T18:21:21.014Z","etag":null,"topics":["algorithms","signatures","tiktok","tiktok-api","tiktok-signature","x-gorgon","x-khronos","x-ss-stub","xgorgon"],"latest_commit_sha":null,"homepage":"https://discord.gg/onlp","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtekky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-19T00:54:34.000Z","updated_at":"2025-01-10T17:24:49.000Z","dependencies_parsed_at":"2022-09-16T04:11:53.645Z","dependency_job_id":null,"html_url":"https://github.com/xtekky/x-ss-stub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtekky%2Fx-ss-stub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtekky%2Fx-ss-stub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtekky%2Fx-ss-stub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtekky%2Fx-ss-stub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtekky","download_url":"https://codeload.github.com/xtekky/x-ss-stub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248296772,"owners_count":21080305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","signatures","tiktok","tiktok-api","tiktok-signature","x-gorgon","x-khronos","x-ss-stub","xgorgon"],"created_at":"2024-10-13T07:28:45.203Z","updated_at":"2025-04-10T20:51:46.405Z","avatar_url":"https://github.com/xtekky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"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.\n\n![image](https://user-images.githubusercontent.com/98614666/179641196-93b63478-e10a-422f-a33c-631d7344d683.png)\n\n#### Encryption algorithm:\n- Couldn't be simpler, its an md5 hash, in uppercase\n\n![image](https://user-images.githubusercontent.com/98614666/179641595-9243ed30-a230-4da5-beba-99afd3f44084.png)\n\n#### Encrypted data:\n- The encrypted data is the urlencoded post data/body\n\n![image](https://user-images.githubusercontent.com/98614666/179642146-8c1d4755-a906-48b5-b5ac-6a5c8fab37bc.png)\n\n#### use case:\n- x-ss-stub may be required as encryption key/param for some algorithms such as x-gorgon\n\n\n#### python script to generate x-ss-stub:\n```python\nimport hashlib\n\ndata = \"password=4z6d6f6c75604535313434\u0026account_sdk_source=app\u0026username=7d7xx0ze6exx\u0026mix_mode=1\u0026multi_login=1\"\n\nprint(str(hashlib.md5(data.encode()).hexdigest()).upper())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtekky%2Fx-ss-stub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtekky%2Fx-ss-stub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtekky%2Fx-ss-stub/lists"}