public static string HashSecKey(Encoding enc, string secKey) { using (var sha1 = new SHA1Managed()) { var hash = sha1.ComputeHash(enc.GetBytes(secKey + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11")); return Convert.ToBase64String(hash); } }