bcrypt/tests
manu d50ab05b2b
Raise ValueError if password is longer than 72 bytes (#1000)
* move existing tests for long pws into a separate test to assert ValueError is raised

* add more tests for edge cases around the 72 byte length

* raise ValuError if the password passed to hashpw() is longer than 72 bytes

* improve error message

* update test_2a_wraparound_bug

* remove obsolete re-assignment of `password`

* remove obsolete tests

the "raise on passwords longer than 72 chars" behavior is already covered in `test_hashpw_raises_correctly_for_long_passwords`,
and the `test_2a_wraparound_bug` is not relevant anymore (this previously ensured truncation, which we do not do anymore)
2025-07-03 21:07:06 -07:00
..
test_bcrypt.py Raise ValueError if password is longer than 72 bytes (#1000) 2025-07-03 21:07:06 -07:00