{"id":22683247,"url":"https://github.com/mtchavez/common-pw","last_synced_at":"2025-08-01T17:38:43.797Z","repository":{"id":57607437,"uuid":"96391046","full_name":"mtchavez/common-pw","owner":"mtchavez","description":"Common password checker - probable word list","archived":false,"fork":false,"pushed_at":"2017-07-09T23:40:24.000Z","size":373,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T14:32:26.396Z","etag":null,"topics":["password-checker","password-safety","password-strength","password-validator"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtchavez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-06T05:18:56.000Z","updated_at":"2024-11-12T22:51:44.000Z","dependencies_parsed_at":"2022-08-30T05:23:16.027Z","dependency_job_id":null,"html_url":"https://github.com/mtchavez/common-pw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtchavez/common-pw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fcommon-pw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fcommon-pw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fcommon-pw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fcommon-pw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtchavez","download_url":"https://codeload.github.com/mtchavez/common-pw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fcommon-pw/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268269328,"owners_count":24223228,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["password-checker","password-safety","password-strength","password-validator"],"created_at":"2024-12-09T21:11:22.811Z","updated_at":"2025-08-01T17:38:42.814Z","avatar_url":"https://github.com/mtchavez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Common Password Checker\n\ncommon-pw is a go packge implementing a JSON API endpoint to check if a password\nis in the top X most commonly used. Data is used from [Probable Word List][pwl]\n\n## Usage\n\n### Installing\n\nClone repo `git clone https://github.com/mtchavez/common-pw`\n\n#### Large Datasets\n\nDownload the data from the [probable word list][pwl] repository and place\nin the data directory. Currently `Top32Million-probable.txt` is not in version\ncontrol because of size.\n\n### Server\n\nRun the server on port 3000 with `go run main.go`. The password filters will\nbuild in the background and can take ~20 seconds to build. The time it took to\nbuild will be logged out.\n\n### Checking Passwords\n\nUse cURL or something similar to post to `/validate` with a JSON body:\n\n```json\n{\n  \"password\": \"the password to check\"\n}\n```\n\n**Examples:**\n\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{\"password\": \"iloveyou\"}' | jq\n{\n  \"status\": \"OK\",\n  \"top196\": \"true\",\n  \"top3575\": \"true\",\n  \"top95k\": \"true\"\n}\n```\n---\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{\"password\": \"annabelle\"}' | jq\n{\n  \"status\": \"OK\",\n  \"top196\": \"false\",\n  \"top3575\": \"true\",\n  \"top95k\": \"true\"\n}\n```\n---\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{\"password\": \"!@#$%^\u0026*(\"}' | jq\n{\n  \"status\": \"OK\",\n  \"top196\": \"false\",\n  \"top3575\": \"false\",\n  \"top95k\": \"true\"\n}\n```\n---\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{\"password\": \"Portlandia\"}' | jq\n{\n  \"status\": \"OK\",\n  \"top196\": \"false\",\n  \"top3575\": \"false\",\n  \"top95k\": \"false\"\n}\n```\n---\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{\"password\": \"Portlandia\"}' | jq\n{\n  \"status\": \"OK\",\n  \"top196\": \"false\",\n  \"top32m\": \"true\",\n  \"top3575\": \"false\",\n  \"top95k\": \"false\"\n}\n```\n---\n**A password is required**\n```\n$ curl -s -XPOST -H \"Content-Type: application/json\" http://localhost:3000/validate --data '{}' | jq\n{\n  \"error\": \"a password must be provided\",\n  \"status\": \"failed\"\n}\n```\n\n[pwl]: https://github.com/berzerk0/Probable-Wordlists\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Fcommon-pw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtchavez%2Fcommon-pw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Fcommon-pw/lists"}