Spaces:
Running
Running
| """Centralized SHA-256 hashing utilities.""" | |
| from __future__ import annotations | |
| import hashlib | |
| from utils.constants import FormatStrings | |
| def sha256_text(text: str) -> str: | |
| """Compute SHA-256 hash of text.""" | |
| return hashlib.sha256(text.encode(FormatStrings.ENCODING_UTF8)).hexdigest() | |