计算密码哈希值
(password)
| 32 | |
| 33 | @staticmethod |
| 34 | def password_hash(password): |
| 35 | """计算密码哈希值""" |
| 36 | return int(hashlib.sha256(password.encode()).hexdigest()[:16], 16) |
| 37 | |
| 38 | @staticmethod |
| 39 | def get_file_extension(filename): |
no outgoing calls
no test coverage detected