import hashlib


def ComputeMD5Hex(byte_str):
  """Compute MD5 hash of "byte_str" and return it encoded as hex string."""
  hasher = hashlib.md5()
  hasher.update(byte_str)
  return hasher.hexdigest()