diff options
author | Jonathan White <support@dmapps.us> | 2019-06-25 01:03:42 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-06-25 22:37:40 +0300 |
commit | 0e0cba653f2648842d90ceef957f52f9ec851f86 (patch) | |
tree | 790e7982c797e812f3e70bd8c5496e7762af1eb5 /tests/TestCli.h | |
parent | bb2d7bca5a5de675d6ee1f4ec4c4f868229da47a (diff) |
CLI: add 'analyze' subcommand for offline HIBP breach checks
This new subcommand checks all passwords in the given database against a given list of SHA-1 password hashes. Such lists are available from the "Have I Been Pwned" project at https://haveibeenpwned.com/Passwords.
Note that this support offline checking only. The HIBP project also provides a web API for checking specific hash ranges; this is not currently supported.
Diffstat (limited to 'tests/TestCli.h')
-rw-r--r-- | tests/TestCli.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestCli.h b/tests/TestCli.h index cd8ebacfb..dcc84c2e3 100644 --- a/tests/TestCli.h +++ b/tests/TestCli.h @@ -21,11 +21,14 @@ #include "core/Database.h" #include "util/TemporaryFile.h" +#include <QByteArray> #include <QFile> #include <QScopedPointer> +#include <QSharedPointer> #include <QTemporaryFile> #include <QTest> -#include <QTextStream> + +#include <stdio.h> class TestCli : public QObject { @@ -42,6 +45,7 @@ private slots: void testCommand(); void testAdd(); + void testAnalyze(); void testClip(); void testCreate(); void testDiceware(); |