I have my code on how to encrypt my app but i want my app to have be fixed encrypted app. For security purposes. Below is my code.

try
            {
                Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName);
                ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection;
                section.SectionInformation.ProtectSection("DataProtectionCOnfigurationProvider");
                config.Save();
                Console.WriteLine("Protected = {0}", section.SectionInformation.IsProtected);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

Waiting for a reply.

Recommended Answers

All 3 Replies

check this link andthis link"] this link[/URL]

check this link and this link and this link all these links contain code examples and the problems related encryption of data..

What exactly are you trying to encrypt? The connection strings?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.