I'm trying to hash password but it's throwing this two errors
'version = _bcrypt.about.version'
and
'ValueError: password cannot be longer than 72 bytes, truncate manually if necessary (e.g. my_password[:72])'
the code is attached. if anyone can help. I even tried to turncate the password with password[:72] , but it gives the same error. Idk what's wrong.
version: bcrypt 5.0.0 (on the previous version 4.3.0 the second error doesn't occur but the first error persists)