def _CalculateB64EncodedHashFromContents(fp, hash_alg):
  return Base64EncodeHash(_CalculateHashFromContents(fp, hash_alg))
Calculates a base64 digest of the contents of a seekable stream.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/hashing_helper.py/_CalculateB64EncodedHashFromContents