Hi,
Is it required to encrypt? If yes how to do this? What are the advantages and disadvantages?
Should connection string in web.config file be encrypted?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted May 17, 2013, 2:05 AM EDT
hi,
if you want to hide connection string detail then you may encrypt it, but it is not necessary .
Please refer
http://www.codeproject.com/Tips/304638/Encrypt-or-Decrypt-Connection-Strings-in-web-confi
http://chiragrdarji.wordpress.com/2008/08/11/how-to-encrypt-connection-string-in-webconfig/
major disadvantages with encrypted connection string is you can not change connection string easily but have put some extra afford on to do this.
also run you have put extra logic to decrypt connection string before it pass to connection.
hope this will help you.
Suma M161 reputationPosted May 19, 2013, 8:43 AM EDT