{"id":15173172,"url":"https://github.com/supabase/hibp","last_synced_at":"2025-10-19T09:32:12.030Z","repository":{"id":209013599,"uuid":"720223454","full_name":"supabase/hibp","owner":"supabase","description":"Go library for HaveIBeenPwned.org's pwned passwords API.","archived":false,"fork":false,"pushed_at":"2023-12-12T09:11:01.000Z","size":14,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-04-13T21:54:14.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/supabase.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},"funding":{"github":["supabase"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-11-17T21:25:46.000Z","updated_at":"2024-02-20T15:57:26.000Z","dependencies_parsed_at":"2024-04-12T07:56:44.173Z","dependency_job_id":"a1d5494a-4451-4a75-b5cc-549f7e4a638e","html_url":"https://github.com/supabase/hibp","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"d225752ae869f2e9e813d5effb11857be3e9201b"},"previous_names":["supabase/hibp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fhibp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fhibp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fhibp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fhibp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase","download_url":"https://codeload.github.com/supabase/hibp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877374,"owners_count":16554883,"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-09-27T10:41:59.564Z","updated_at":"2025-10-19T09:32:11.683Z","avatar_url":"https://github.com/supabase.png","language":"Go","funding_links":["https://github.com/sponsors/supabase"],"categories":[],"sub_categories":[],"readme":"# Pwned Passwords API in Go\n\nThis library implements the [HaveIBeenPwned.org's Pwned Passwords v3\nAPI](https://haveibeenpwned.com/API/v3#PwnedPasswords) in Go.\n\nFeatures:\n\n- No external dependencies to reduce the likelihood of supply-chain attacks.\n- Cache support, as API responses can sometimes be huge.\n- Concurrent request optimization. Sharing a single request for password hash\n  prefix.\n- Efficient memory use, no large allocations.\n\nExample:\n\n```go\nimport (\n\t\"github.com/supabase/hibp\"\n)\n\nfunc main() {\n\tpwnedClient := hibp.PwnedClient{\n\t\t// please always set a User-Agent identifying your project\n\t\tUserAgent: \"my-super-cool-project\",\n\t}\n\n\tisPwned, err := pwnedClient.Check(context.Background(), \"password1\")\n\tif err != nil {\n\t\tif ur, ok := err.(*hibp.ErrorUnknownResponse); ok {\n\t\t\t// any non-200 response available in ur.Response\n\t\t}\n\n\t\tpanic(err)\n\t}\n\n\tfmt.Print(\"Your password is \")\n\tif isPwned {\n\t\tfmt.Print(\"pwned!\\n\")\n\t} else {\n\t\tfmt.Print(\"safe for now!\\n\")\n\t}\n}\n```\n\n## License\n\nMaintained by the [Auth](https://supabase.com/docs/guides/auth) team at\n[Supabase](https://supabase.com). Licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fhibp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase%2Fhibp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fhibp/lists"}