Spaces:
Sleeping
Sleeping
| import hashlib | |
| def hash_text(text: str) -> str: | |
| return hashlib.sha256(text.encode('utf-8')).hexdigest() | |
| def hash_bytes(data: bytes) -> str: | |
| return hashlib.sha256(data).hexdigest() |
| import hashlib | |
| def hash_text(text: str) -> str: | |
| return hashlib.sha256(text.encode('utf-8')).hexdigest() | |
| def hash_bytes(data: bytes) -> str: | |
| return hashlib.sha256(data).hexdigest() |