#!/usr/bin/python3

"""Compute a sha256 hash of stdin similarly to how backshift does it."""

import sys
import hashlib

# Note that this will overwhelm a computer if stdin is "too big".

hasher = hashlib.sha256(sys.stdin.buffer.read())
digest = hasher.hexdigest()
print(digest)