refactor: drop players.json support
This commit is contained in:
8
utils/hasher.py
Normal file
8
utils/hasher.py
Normal 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]
|
||||
Reference in New Issue
Block a user