private static string GetChecksum()

in installer/CustomAction/CouchIniAction.cs [186:194]


        private static string GetChecksum(string file)
        {
            using (FileStream stream = File.OpenRead(file))
            {
                SHA256CryptoServiceProvider sha = new SHA256CryptoServiceProvider();
                byte[] checksum = sha.ComputeHash(stream);
                return BitConverter.ToString(checksum).Replace("-", String.Empty);
            }
        }