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

Method hash_password

src/core/auth.py:27–29  ·  view source on GitHub ↗

Hash password

(password: str)

Source from the content-addressed store, hash-verified

25 return username == config.admin_username and password == config.admin_password
26
27 @staticmethod
28 def hash_password(password: str) -> str:
29 """Hash password"""
30 return bcrypt.hashpw(password.encode(), bcrypt.gensalt()).decode()
31
32 @staticmethod

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected