pwned_password
Version, currently 0.1.02 versions
- 0.1.1latestMar 24, 2021
- 0.1.0not indexedMar 24, 2021
github.com/anamba/pwned_password.cr
Calls HIBP API to check whether password was listed in a breach
7 stars
0 dependents
License: MIT
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
pwned_password:
github: anamba/pwned_password.cr
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# pwned_password - Calls HIBP API to check whether password was listed in a breach
[](https://github.com/anamba/pwned_password.cr/releases/latest)
[](https://travis-ci.org/anamba/pwned_password.cr)
[](https://github.com/anamba/pwned_password.cr/blob/master/LICENSE)
Implements API v2 of Troy Hunt's HIBP to check whether a given password has been exposed in a breach.
<https://haveibeenpwned.com/API/v2#PwnedPasswords>
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
pwned_password:
github: anamba/pwned_password.cr
```
2. Run `shards install`
## Usage
```crystal
require "pwned_password_check"
PwnedPassword.search("correct horse battery staple") # -> 2 (found in 2 breaches)
PwnedPassword.search("f7Yr,f9dffF?eKeDpjepGwcc") # -> nil (not found)
```
## Contributing
1. Fork it (<https://github.com/anamba/pwned_password/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Aaron Namba](https://github.com/anamba) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Mar 24, 2021
- Commit
ba6207c55d07- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/anamba/pwned_password.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 2