{"id":21939182,"url":"https://github.com/grottopress/pawn","last_synced_at":"2025-04-22T14:49:41.948Z","repository":{"id":85788202,"uuid":"400209958","full_name":"GrottoPress/pawn","owner":"GrottoPress","description":"A low-level API client for Pwned Passwords","archived":false,"fork":false,"pushed_at":"2025-04-19T08:42:50.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T15:07:39.877Z","etag":null,"topics":["api","crystal","have-i-been-pwned","http-client","pwned-passwords"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/GrottoPress.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-26T15:04:20.000Z","updated_at":"2025-04-19T08:42:53.000Z","dependencies_parsed_at":"2024-08-15T15:18:56.575Z","dependency_job_id":"61c39789-109e-4579-ab6e-f7eef9204314","html_url":"https://github.com/GrottoPress/pawn","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrottoPress%2Fpawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrottoPress%2Fpawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrottoPress%2Fpawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrottoPress%2Fpawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrottoPress","download_url":"https://codeload.github.com/GrottoPress/pawn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250263164,"owners_count":21401809,"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","crystal","have-i-been-pwned","http-client","pwned-passwords"],"created_at":"2024-11-29T02:17:18.696Z","updated_at":"2025-04-22T14:49:41.915Z","avatar_url":"https://github.com/GrottoPress.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pawn\n\n**Pawn** is a low-level API client for [*Pwned Passwords*](https://haveibeenpwned.com/Passwords).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     pawn:\n       github: GrottoPress/pawn\n   ```\n\n1. Run `shards update`\n\n1. Require *Pawn* in your app/library:\n\n   ```crystal\n   # ...\n   require \"pawn\"\n   # ...\n   ```\n\n## Usage\n\n1. Check if a password appears in any breach:\n\n   ```crystal\n   Pawn.pwned?(\"password\") # \u003c= true\n   ```\n\n1. Find how many times a password appears in breaches:\n\n   ```crystal\n   Pawn.count(\"password\") # \u003c= 3861493\n   ```\n\nEither method accepts an optional `padding`, a `Bool` argument that sends a `Add-Padding` header along with the request to *Pwned Passwords* API.\n\n## Development\n\nRun tests with `crystal spec`.\n\n## Contributing\n\n1. [Fork it](https://github.com/GrottoPress/pawn/fork)\n1. Switch to the `master` branch: `git checkout master`\n1. Create your feature branch: `git checkout -b my-new-feature`\n1. Make your changes, updating changelog and documentation as appropriate.\n1. Commit your changes: `git commit`\n1. Push to the branch: `git push origin my-new-feature`\n1. Submit a new *Pull Request* against the `GrottoPress:master` branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrottopress%2Fpawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrottopress%2Fpawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrottopress%2Fpawn/lists"}