From aaf8b125498ca8e9fd045310adff08df85ef62b5 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Tue, 4 Mar 2025 18:39:48 +0300 Subject: [PATCH] [+] check invalid password --- python/online/fxreader/pr34/tests/test_crypto.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/online/fxreader/pr34/tests/test_crypto.py b/python/online/fxreader/pr34/tests/test_crypto.py index ece17b4..1c39c70 100644 --- a/python/online/fxreader/pr34/tests/test_crypto.py +++ b/python/online/fxreader/pr34/tests/test_crypto.py @@ -27,3 +27,10 @@ class TestCrypto(unittest.TestCase): ) self.assertTrue(check_res) + + self.assertFalse( + crypto.PasswordUtils.secret_check( + secret + 'asdfasdfsdf', + *hash_res, + ) + )