Swift framework and tool to check passwords against the Have I Been Pwned API.
PwnedKit
requires Swift 4.0 or later and has been tested both on macOS and Linux.
PwnedTool
is Command Line tool that will show you how many occurrences of each input password are found in the HIBP database:
$ swift run PwnedTool -i passw0rd Secure5
[*] passw0rd
[ ] Occurrences: 200297
[*] Secure5
[ ] Occurrences: 2
This library never sends the password over the network nor does it store the passwords processed. You can read about how it works here.
- Initial version as
PwnedPasswords
: foffer - Current version as
PwnedKit
, withPwnedTool
and Swift PM support: pvieito
PwnedKit
is available under the MIT license. See the LICENSE file for more info.