{"id":21548558,"url":"https://github.com/technion/pwncheck-brutal","last_synced_at":"2025-06-23T03:37:33.316Z","repository":{"id":145344205,"uuid":"146535811","full_name":"technion/pwncheck-brutal","owner":"technion","description":"Minimal Browser based Pwned Passwords module","archived":false,"fork":false,"pushed_at":"2018-08-30T06:46:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T09:29:16.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/technion.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-29T02:48:30.000Z","updated_at":"2018-08-30T06:46:10.000Z","dependencies_parsed_at":"2023-07-03T09:17:47.049Z","dependency_job_id":null,"html_url":"https://github.com/technion/pwncheck-brutal","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/technion%2Fpwncheck-brutal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fpwncheck-brutal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fpwncheck-brutal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technion%2Fpwncheck-brutal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technion","download_url":"https://codeload.github.com/technion/pwncheck-brutal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141588,"owners_count":20404835,"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":[],"created_at":"2024-11-24T06:19:00.069Z","updated_at":"2025-03-18T01:54:14.458Z","avatar_url":"https://github.com/technion.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Brutal Pwncheck\n===============\n\nWhy brutal?\n-----------\n\nThere are many, many libraries for Troy Hunt's Pwned Passwords API.\n\nMany of them require Node. Others bundle a lot of polyfills. My favourites include some guy's home made SHA-1 imeplementation. This library is for people looking to use the API, and nothing else.\n\nIt's browser based, and although the build compiles out await/async, even Edge supports ES6 arrow functions, so this library ships with them. That said, Edge does not support SHA-1 in Webcrypto, so that browser isn't supported either.\n\nNon-goals\n---------\n\n- Returning the number of times seen. This is not a good metric, a bad password is a bad password.\n- Bundling 30KB of polyfills. I suggest looking at one of the existing libraries for this goal.\n- Running as a command line interface. This was specifically built for web based use.\n\nUsage\n-----\n\nInstall the module:\n\n    npm install --save pwncheck-brutal\n\nUse it:\n```\nimport { beenpwned } from \"pwncheck-brutal\";\nbeenpwned(confirmpassword)\n  .then(pwned) =\u003e {\n    console.log(`Has password been pwned? ${pwned}`);\n  }\n```\n\nTests\n-----\n\nI appreciate that you can mock fetch() and WebCrypto, but this code doesn't do much else. I generally take an approach of extensively writing tests, but this app would just be testing a bunch of mocks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnion%2Fpwncheck-brutal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnion%2Fpwncheck-brutal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnion%2Fpwncheck-brutal/lists"}