refactor: drop players.json support

This commit is contained in:
mokurin000
2025-08-04 01:55:44 +08:00
parent c1767e592e
commit a3ba321e5e
3 changed files with 12 additions and 26 deletions

8
utils/hasher.py Normal file
View File

@@ -0,0 +1,8 @@
import hashlib
def salted_hash_userid(user_id: int):
SALT = b"Lt2N5xgjJOqRsT5qVt7wWYw6SqOPZDI7"
hash_uid = hashlib.sha256(f"{user_id}".encode("utf-8") + SALT)
return hash_uid.hexdigest()[:16]