https://github.com/firaenix/password-filter
https://github.com/firaenix/password-filter
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/firaenix/password-filter
- Owner: Firaenix
- Created: 2022-01-18T05:52:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T13:42:53.000Z (about 3 years ago)
- Last Synced: 2023-08-08T20:44:59.611Z (over 1 year ago)
- Language: JavaScript
- Size: 3.24 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Password Filter
A Binary Fuse filter that stores the top 1,000,000 most compromised passwords from https://haveibeenpwned.com/Passwords.
Runs in WASM environments to allow quickly testing that your password is not compromised.
### Build your xorfilter.bin
1. Put your pwned-passwords dataset into the dataset folder named `pwned-passwords-sha1-ordered-by-count.txt`
2. Run `cargo run --example build_filter --release`### Test querying your xorfilter.bin
1. cargo run --example query_filter --release## Install in NodeJS
I couldn't get the password-filter npm library so I'm using pwned-pass instead
NodeJS:
`npm install pwned-pass`Webpack:
`npm install pwned-pass-bundler`Deno
```js
import init, {isCompromisedPassword} from 'https://deno.land/x/[email protected]/password_filter.js';
````