summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-02-17 11:21:46 -0500
committerEli Collins <elic@assurancetechnologies.com>2020-02-17 11:21:46 -0500
commitec62db38788b1dc0c8f78060f6119cb63bbacfbd (patch)
treea381646403b89d70866e31cc57641cdd14553f77 /passlib/tests
parente53460bc94667aaf29ff0221ba3e44d61b87fd2d (diff)
downloadpasslib-ec62db38788b1dc0c8f78060f6119cb63bbacfbd.tar.gz
passlib.hash.bcrypt: added notes re: final salt character
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_handlers_bcrypt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/passlib/tests/test_handlers_bcrypt.py b/passlib/tests/test_handlers_bcrypt.py
index 978b68b..8c88935 100644
--- a/passlib/tests/test_handlers_bcrypt.py
+++ b/passlib/tests/test_handlers_bcrypt.py
@@ -402,7 +402,9 @@ class _bcrypt_test(HandlerCase):
bcrypt = self.handler.using(rounds=4)
# PASS1 = "test"
- BAD1 = "$2a$04$yjDgE74RJkeqC0/1NheSScrvKeu9IbKDpcQf/Ox3qsrRS/Kw42qIS"
+ # bad contains invalid 'c' char at end of salt:
+ # \/
+ BAD1 = "$2a$04$yjDgE74RJkeqC0/1NheSScrvKeu9IbKDpcQf/Ox3qsrRS/Kw42qIS"
GOOD1 = "$2a$04$yjDgE74RJkeqC0/1NheSSOrvKeu9IbKDpcQf/Ox3qsrRS/Kw42qIS"
self.assertTrue(bcrypt.needs_update(BAD1))