7 lines
178 B
Python
7 lines
178 B
Python
import hashlib
|
|
import json
|
|
|
|
def hash_fingerprint(data: dict) -> str:
|
|
normalized = json.dumps(data, sort_keys=True)
|
|
return hashlib.sha256(normalized.encode()).hexdigest()
|