检查密码是否已经是哈希格式
(password: str)
| 131 | |
| 132 | |
| 133 | def is_password_hashed(password: str) -> bool: |
| 134 | """ |
| 135 | 检查密码是否已经是哈希格式 |
| 136 | """ |
| 137 | return password.startswith("sha256$") and len(password.split("$")) == 3 |
| 138 | |
| 139 | |
| 140 | async def sanitize_filename(filename: str) -> str: |
no outgoing calls
no test coverage detected