Verify password
(password: str, hashed: str)
| 30 | return bcrypt.hashpw(password.encode(), bcrypt.gensalt()).decode() |
| 31 | |
| 32 | @staticmethod |
| 33 | def verify_password(password: str, hashed: str) -> bool: |
| 34 | """Verify password""" |
| 35 | return bcrypt.checkpw(password.encode(), hashed.encode()) |
| 36 | |
| 37 |
nothing calls this directly
no outgoing calls
no test coverage detected