File size: 161 Bytes
c1d887c
 
 
 
 
1
2
3
4
5
6
import hashlib

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