All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Encrypt ConnectionStrings in Web.Config File

Viewing post 1 to 6 (6 total posts)
Profile picture of PapaYao

papayao said 1 year ago:

How to encrypt the connectionstrings of my web.config file when upload it the server? The user and password database are there, so, is dangerous without encrypt O_o. Help please. Windows Host, Microsoft Sql Database.

Profile picture of PapaYao

papayao said 1 year ago:

and the website Asp.Net 4 (Framework 4)

Profile picture of bryceh

GoDaddy Expert bryceh said 1 year ago:

@papayao

As Windows shared hosting accounts do not provide you with command line access, you won’t be able to encrypt your web.config file using traditional methods. Your best bet would be to place the connection string info into a separate config file. Check out the link below for more information on how to do that:

http://msdn.microsoft.com/en-us/library/ms254494.aspx

Hope this helps!

-Bryce

Profile picture of Deepu

deepu said 11 months ago:

Hi Bryce,

How does it help to move the connectionstring to another config file. Ultimately we wont’ be able to encrypt the connectionstring though lying in separate file. This is really critical, as without encrypting the connectionstring it will be plaintext.

Profile picture of TimB

GoDaddy Expert timb said 11 months ago:

@deepu

Using the link provided by Bryce, you can use an external configuration file to contain a fragment of a configuration file. The external configuration file is then referenced by the main configuration file.

Tim B

Profile picture of Toiyabe

Toiyabe said 10 months, 2 weeks ago:

Tim,

I believe the external configuration file does not solve the problem, as that file would then need to be encrypted. To do that, you would have to use the same encryption methods one would use on the main web.config.

Because GoDaddy shared hosting is a web farm, you’d have to use the RsaProtectedConfigurationProvider.

This, however, requires exporting of keys from one server and importing into another…according to the article referenced above, “export the encryption keys used to encrypt the data and import them on another server.”

You and I and the average user do not have machine level access to GoDaddy web farm(s).

From Go Daddy’s perspective, I’ve read that so long as your FTP username and password remain secure, there is no way any .config file will be passed to The Internet from IIS.

Problem with this leap of faith is the assumption that none of our computers will encounter malware that will steal user names and passwords.

So encrypting .config files for the present at Go Daddy seems an elusive goal.

The only way I can see one could offer a little protection is to bury the connection string deep inside obfuscated code-and then set the connection strings at run-time in code behind.

-Eric

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.