{"id":21747492,"url":"https://github.com/charlespascoe/padding-oracle-demo","last_synced_at":"2026-04-30T07:35:57.969Z","repository":{"id":92057205,"uuid":"168980340","full_name":"charlespascoe/padding-oracle-demo","owner":"charlespascoe","description":" A TypeScript demonstration of a Padding Oracle Attack","archived":false,"fork":false,"pushed_at":"2019-03-19T12:07:46.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T09:15:21.352Z","etag":null,"topics":["crypto","demo","security","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/charlespascoe.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,"zenodo":null}},"created_at":"2019-02-03T18:48:56.000Z","updated_at":"2019-04-06T15:32:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc69b33c-3bc7-4b6b-b57f-df0138ac19dc","html_url":"https://github.com/charlespascoe/padding-oracle-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlespascoe/padding-oracle-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlespascoe%2Fpadding-oracle-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlespascoe%2Fpadding-oracle-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlespascoe%2Fpadding-oracle-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlespascoe%2Fpadding-oracle-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlespascoe","download_url":"https://codeload.github.com/charlespascoe/padding-oracle-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlespascoe%2Fpadding-oracle-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261821604,"owners_count":23214943,"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":["crypto","demo","security","typescript"],"created_at":"2024-11-26T08:09:18.005Z","updated_at":"2026-04-30T07:35:57.916Z","avatar_url":"https://github.com/charlespascoe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Padding Oracle Demo\n\nA TypeScript demonstration of a [Padding Oracle Attack](https://robertheaton.com/2013/07/29/padding-oracle-attack/).\n\nIt can decrypt all but the first block of encrypted data using only a padding oracle. If the first blocks of a ciphertext/plaintext pair is known, the IV can be computed, which can be used for full decryption of other messages.\n\nRun `npm install` to install dependencies and then `npm run demo` to run the demo, or just `ts-node index.ts` if you already have `ts-node` globally installed. I know it may seem pointless only having TypeScript as a dependency, but hey, I like [TypeScript](https://www.typescriptlang.org/).\n\nOutput when run:\n![Output when the demo is run](screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlespascoe%2Fpadding-oracle-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlespascoe%2Fpadding-oracle-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlespascoe%2Fpadding-oracle-demo/lists"}