Question I have a problem encrypting the database connection data file inside the xml file

bassamalqadhi

New member
Joined
Mar 25, 2024
Messages
1
Programming Experience
1-3
0

I have a problem encrypting the database connection data file inside the xml file

Please help encrypt the xml file, as it contains data for connecting to the database when entering the system

It remains encrypted so that the server data is not known


Project source code

 
How are you trying to encrypt the connection string in the XML file?

If the XML file is a standard web.config file, AND you are targeting .NET Framework, then simply `aspnet_regiis.exe`


You MUST do the encryption step on the machine on which you plan to run your code which will later read the connection strings from the web.config.[sup]*[/sup]

[sup]*[/sup] The MUST can be worked around by sharing the machine encryption key with the build machine or the dev machine, but you compromise security because now the connection string can be decrypted at multiple places, not just the intended host machine.

Your file link in your post #1 looks to point to a deleted file, by the way.
 

Latest posts

Back
Top Bottom