From 1d9d6c6c88de8723a1e8873855ed64e83dc48cab Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sun, 25 Aug 2024 13:45:19 +0200 Subject: [PATCH] mention --upstream-update --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 34b4d7e..938da8e 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,11 @@ Webservice to query https://haveibeenpwned.com/ database dumps. Usage ----- -Download a database dump using [haveibeenpwned-downloader](https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader): +Download a database dump using [haveibeenpwned-downloader](https://github.com/HaveIBeenPwned/PwnedPasswordsDownloader) +and import it: ``` haveibeenpwned-downloader pwned-passwords-sha1-ordered-by-hash-v8 -p 64 -``` - -Import a database dump: - -``` cargo run --release -- --source pwned-passwords-sha1-ordered-by-hash-v8.txt --compact ``` @@ -23,9 +19,12 @@ For local testing, `test.txt` contains the single password `test`. Serve: ``` -cargo run --release -- --bind 127.0.0.1:1337 +cargo run --release -- --bind 127.0.0.1:1337 --upstream-update ``` +With the `--upstream-update` flag, entries are slowly but continuously updated +from the upstream API (about 1 month for a full update cycle). + HTTP API --------