k3integrations / hibp_check

Check passwords against API of compromised passwords
MIT License
0 stars 0 forks source link

Rename method to `password_used_count` and add `password_used?` if you don't need count #1

Open TylerRick opened 5 years ago

TylerRick commented 5 years ago

Might be nice to provide a method like password_used? that simply returns whether a given password has been compromised (if you don't care how many times)...

TylerRick commented 4 years ago

Noticed that https://github.com/philnash/pwned#plain-ruby uses an API similar to that:

Pwned.pwned?("password")
#=> true

Pwned.pwned_count("password")
#=> 3303003