迁移服务层

This commit is contained in:
2025-10-10 18:11:36 +08:00
parent a71cde7b82
commit 93830c3d03
13 changed files with 437 additions and 188 deletions

View File

@@ -20,7 +20,8 @@ class Password():
:rtype: str
"""
return secrets.token_hex(length)
@staticmethod
def hash(
password: str
) -> str:
@@ -34,6 +35,7 @@ class Password():
"""
return _ph.hash(password)
@staticmethod
def verify(
stored_password: str,
provided_password: str,