{"id":18760148,"url":"https://github.com/sachinsenal0x64/backstripe","last_synced_at":"2025-04-13T03:30:58.368Z","repository":{"id":173246956,"uuid":"650445297","full_name":"sachinsenal0x64/backstripe","owner":"sachinsenal0x64","description":"🏞️ Yes stripe","archived":false,"fork":false,"pushed_at":"2024-04-05T10:04:51.000Z","size":53,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T20:55:44.922Z","etag":null,"topics":["api","backstripe","checkout","decryption","enthusiast","flexible","payment","payments","python","reverse-engineering","stripe"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachinsenal0x64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T04:59:58.000Z","updated_at":"2025-03-05T19:18:04.000Z","dependencies_parsed_at":"2023-11-19T04:26:49.433Z","dependency_job_id":"6cd2dfa4-39ec-42d9-8aab-3c244411827c","html_url":"https://github.com/sachinsenal0x64/backstripe","commit_stats":null,"previous_names":["sachinsenal0x64/stripe-reverse-checkout-session","sachinsenal0x64/backstripe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsenal0x64%2Fbackstripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsenal0x64%2Fbackstripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsenal0x64%2Fbackstripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsenal0x64%2Fbackstripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachinsenal0x64","download_url":"https://codeload.github.com/sachinsenal0x64/backstripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248659606,"owners_count":21141146,"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":["api","backstripe","checkout","decryption","enthusiast","flexible","payment","payments","python","reverse-engineering","stripe"],"created_at":"2024-11-07T18:09:59.384Z","updated_at":"2025-04-13T03:30:58.120Z","avatar_url":"https://github.com/sachinsenal0x64.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n   \u003ca href=\"https://stripe.com\"\u003e\n  \u003cimg src=\"/assets/stripe.svg\" width=\"250\" height=\"125\" alt=\"stripe\"\u003e\n\u003c/a\u003e\n\n\n# BACKSTRIPE\n\n🔓 You have ability to decrypt the checkout URLs and restore them to their original form. (ENCRYPT + DECRYPT) and Stripe Checkout Session to grab Payment information.\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\n## 🧾 Use Cases\n\n- 🦾 Automation\n- 🤸🏻 Flexible\n- 🏞️ Use out of the scope (EX: BOTS)\n\n\u003cbr\u003e\n\n## 🧾 The NutShell\n\nOn May 5, 2023, Stripe.com added security measures by using an XOR algorithm to encrypt the client-side key (pk-key) and base64 for the checkout URL. This encryption makes automating tasks with the checkout URL challenging. While automation libraries like Selenium can extract the pk-key, it's slow and not how stripe.com handles the backend. To overcome this, I spent time reverse engineering Stripe API \u0026 finding the correct decryption key, using a simple brute force method testing numbers 0 to 1000. The correct key turned out to be 5, allowing for a straightforward Python code to decrypt and build a checkout session in a reverse way.\n\n\u003cbr\u003e\n\n## 🔑 GAME CHANGER \n\nACTUAL SIMPLE DECRYPTING PART (AFTER THE DECODE)\n\nPlease refer to [stripe.py](https://github.com/sachinsenal0x64/stripe-reverse-checkout-session/blob/main/stripe.py).\n\n```Python\n# DECODE\n\nprint(\"Decoded PK value:\", decoded_pk)\n\n# ASSIGN\n\ndry = \"\"\n\n# DECRYPT WITH VALUE 5\n\nfor c in decoded_pk:\n    dry += chr(5 ^ c)\n\nprint(\"Decoded ck value:\", ck)\n\nprint(\"Decrypted PK value:\", dry)\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinsenal0x64%2Fbackstripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachinsenal0x64%2Fbackstripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinsenal0x64%2Fbackstripe/lists"}