Skip to main content

Practice · 3 of 3

Chunked Checksum

CHALLENGE
Difficulty: intermediate+25 XP

Implement file_hash(path) computing the SHA-256 hex digest of a file by reading it in 64 KB chunks (never the whole file). Return the hexdigest string.

Back to lesson: Practice: Streaming Drills