Skip to content

Commit 0d5fa70

Browse files
authored
Test another password
1 parent 249271c commit 0d5fa70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
testhash = simplebcrypt.bhash("password".encode())
44
if simplebcrypt.verify("password",hash1) != True:
55
raise Exception("Verification error")
6+
if simplebcrypt.verify("fakepassword",hash1) != False:
7+
raise Exception("Allowed another password to be accepted")

0 commit comments

Comments
 (0)