import hashlib def calculate_hash(text: str) -> str: """Calculate SHA-256 hash of text.""" return hashlib.sha256(text.encode()).hexdigest()