pwned_password
Version, currently 0.1.12 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
Installation
# Add this to your shard.yml
dependencies:
pwned_password:
github: anamba/pwned_password.cr
version: ~> 0.1.1Then run:
shards installshard.yml
- Crystal
>= 0.36.0, < 2.0.0- License
- MIT
- Author
- Aaron Namba <aaron@aaronnamba.com>
Dependencies
This version declares no dependencies.
README
# 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.1- Tagged
- Mar 24, 2021
- Commit
8b1ef872ce0e- Crystal
>= 0.36.0, < 2.0.0- Indexed
- yes
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