MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / verify_password

Method verify_password

src/core/auth.py:32–34  ·  view source on GitHub ↗

Verify password

(password: str, hashed: str)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected