MCPcopy Index your code
hub / github.com/dataease/SQLBot / md5pwd

Function md5pwd

backend/common/core/security.py:31–34  ·  view source on GitHub ↗
(password: str)

Source from the content-addressed store, hash-verified

29 return pwd_context.hash(password)
30
31def md5pwd(password: str) -> str:
32 m = hashlib.md5()
33 m.update(password.encode("utf-8"))
34 return m.hexdigest()
35
36def verify_md5pwd(plain_password: str, md5_password: str) -> bool:
37 return md5pwd(plain_password) == md5_password

Callers 3

pwdUpdateFunction · 0.90
verify_md5pwdFunction · 0.85
default_md5_pwdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected