import hashlib


def base64_to_sha256(img_base64):
  """Hash base64 image to sha256.

  Args:
    img_base64: base64 string of image.
  Returns:
    sha1 of the image.
  """
  img_sha = hashlib.sha256(img_base64).hexdigest()
  return img_sha