Hi,
My application is on the shared Hosting.I've encrypted my Connection String programmatically to make it secure. However, the hacker still is able to decrypt the encrpted Connection String adding scripts into the DB.
Just wondering if there is a way to solve this problem? Many thanks !!!

I Think It Is Good Idea to Put Your Connection String As Parameter on Web.config File. Another Solution is to Hide The Details of your Connection Using DSN.

If you put your connection string in your web.config, you can use the obfuscater to encrypt your entire file, and also you want to surround and data entry points with code that checks against database code. So that they can't type a select statement into a search box and gain more info than they should.

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.