import hashlib def calculate_file_hash(content: bytes) -> str: """Calculate SHA-256 hash of file content.""" return hashlib.sha256(content).hexdigest()