Initial commit
This commit is contained in:
6
fingerp/utils.py
Normal file
6
fingerp/utils.py
Normal file
@ -0,0 +1,6 @@
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
def hash_fingerprint(data: dict) -> str:
|
||||
normalized = json.dumps(data, sort_keys=True)
|
||||
return hashlib.sha256(normalized.encode()).hexdigest()
|
||||
Reference in New Issue
Block a user