private string Hash(byte[] input) { using (var md5 = new MD5CryptoServiceProvider()) { return Convert.ToBase64String(md5.ComputeHash(input)); } }