string StringHash (HashAlgorithm hasher, Stream stream) { return hasher.ComputeHash (stream).Select (b => String.Format("{0:X2}", b)).Aggregate (string.Concat); }