bcrypt 4.2.0 does not handle invalid values properly.
bcrypt.checkpw(b"password", b"$2b$12$incorrect")
thread '<unnamed>' panicked at src\lib.rs:109:30:
range end index 22 out of range for slice of length 9
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.1.3\plugins\python-ce\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
pyo3_runtime.PanicException: range end index 22 out of range for slice of length 9
It is expected that if the value is invalid, a ValueError exception should be raised
bcrypt 4.2.0 does not handle invalid values properly.
It is expected that if the value is invalid, a ValueError exception should be raised