static void TestEncryptXML()
        {
            RSA rsaKey = GTXXmlCrypt.CreateRSAAlgorithm("rsakey container");

            GTXXmlCrypt.EncryptXmlFile("TestUserSetting.xml", "User", false, rsaKey, "");

            //GTXXmlCrypt.DecryptXmlFile("TestUserSetting.xml", rsaKey, "");
        }
        private static void TestAsymmetricAlgorithm(String filePath)
        {
            String keyContainerName = "rsakey container";
            RSA    rsaKey           = GTXXmlCrypt.CreateRSAAlgorithm(keyContainerName);

            try
            {
                // Read the node which we want to encrypt/decrypt
                Console.WriteLine("Input the XML element node:");
                String elementName = Console.ReadLine();
                Console.WriteLine("Encrypt node element or its content, 0: Element, 1: Only content (Default is Element)");
                String content  = Console.ReadLine();
                bool   bContent = content.Equals("1") ? true : false;
                if (GTXXmlCrypt.EncryptXmlFile(filePath, elementName, bContent, rsaKey, "" /*"rsakey"*/))
                {
                    // Print the encrypted XML to console
                    Console.WriteLine("Encrypt XML with RSA algorithm Succeed!");
                    PrintXml(filePath, PrintTypes.PrintEncrypt);
                    if (GTXXmlCrypt.DecryptXmlFile(filePath, rsaKey, "" /*"rsakey"*/))
                    {
                        PrintXml(filePath, PrintTypes.PrintDecrypt);
                        Console.WriteLine("Decrypt XML with RSA algorithm Succeed!");
                    }
                    else
                    {
                        Console.WriteLine("Decrypt XML with RSA algorithm Failed!");
                    }
                }
                else
                {
                    Console.WriteLine("Encrypt xml with RSA algorithm Failed!");
                }
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                rsaKey.Clear();
            }
        }