Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 05, 2012 06:22 PM by olybobo
Member
228 Points
539 Posts
May 04, 2012 04:29 PM|LINK
Hi All,
I am displaying my SQL Password in my web.config, is there any way i can hide this
164 Points
29 Posts
May 04, 2012 04:40 PM|LINK
Web.config file is only for Server. This file is not server for Client. So you should not be worry about this.
However, if you want to encrypt your password of SQL Server Management Studio, you can follow some links which are mentioned by Microsoft Expert and employee Scott Allen, http://odetocode.com/blogs/scott/archive/2006/01/08/encrypting-custom-configuration-sections.aspx.
221 Points
228 Posts
May 04, 2012 06:12 PM|LINK
you can use IIS to encrypt it for you:
http://msdn.microsoft.com/en-us/library/ms998283
once encrypted via IIS you don't need to update your code to get decrypt the section, since IIS did it .Net will decrypt without you having to change your code.
Contributor
4812 Points
733 Posts
May 04, 2012 06:15 PM|LINK
Check out this article http://msdn.microsoft.com/en-us/library/dx0f3cf2.aspx
Look under the heading: To encrypt connection string information stored in the Web.config file
Star
10980 Points
1691 Posts
May 04, 2012 07:13 PM|LINK
see
http://www.codeproject.com/Articles/36706/Encrypt-and-Decrypt-Configuration-Sections-in-ASP
http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx
http://www.codeproject.com/Articles/23375/Encryption-of-Connection-Strings-Inside-the-Web-co
8976 Points
1659 Posts
May 04, 2012 09:11 PM|LINK
Here is the Solution:
http://wiki.asp.net/page.aspx/1155/encrypt-connectionstrings-section-of-webconfig/
http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx
Good LucK~~
All-Star
95275 Points
14072 Posts
May 05, 2012 07:48 AM|LINK
Securing ConnectionStrings - http://msdn.microsoft.com/en-us/library/89211k9b(v=vs.80).aspx
Thanks,
4351 Points
1277 Posts
May 05, 2012 08:14 AM|LINK
hai
You can refer to the Securing Connection Strings topic in MSDN
http://stackoverflow.com/questions/7581801/how-can-i-hide-my-password-in-my-c-sharp-connection-string
http://stackoverflow.com/questions/2953346/net-sql-server-connection-string-hide-password-from-other-developers
401 Points
497 Posts
May 05, 2012 06:22 PM|LINK
good solution
Sandy1234
Member
228 Points
539 Posts
Password Security
May 04, 2012 04:29 PM|LINK
Hi All,
I am displaying my SQL Password in my web.config, is there any way i can hide this
John Bhatt
Member
164 Points
29 Posts
Re: Password Security
May 04, 2012 04:40 PM|LINK
Web.config file is only for Server. This file is not server for Client. So you should not be worry about this.
However, if you want to encrypt your password of SQL Server Management Studio, you can follow some links which are mentioned by Microsoft Expert and employee Scott Allen, http://odetocode.com/blogs/scott/archive/2006/01/08/encrypting-custom-configuration-sections.aspx.
pdassnyc
Member
221 Points
228 Posts
Re: Password Security
May 04, 2012 06:12 PM|LINK
you can use IIS to encrypt it for you:
http://msdn.microsoft.com/en-us/library/ms998283
once encrypted via IIS you don't need to update your code to get decrypt the section, since IIS did it .Net will decrypt without you having to change your code.
jprochazka
Contributor
4812 Points
733 Posts
Re: Password Security
May 04, 2012 06:15 PM|LINK
Check out this article
http://msdn.microsoft.com/en-us/library/dx0f3cf2.aspx
Look under the heading:
To encrypt connection string information stored in the Web.config file
Nasser Malik
Star
10980 Points
1691 Posts
Re: Password Security
May 04, 2012 07:13 PM|LINK
see
http://www.codeproject.com/Articles/36706/Encrypt-and-Decrypt-Configuration-Sections-in-ASP
http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx
http://www.codeproject.com/Articles/23375/Encryption-of-Connection-Strings-Inside-the-Web-co
Skype: maleknasser1
MahadTECH
Star
8976 Points
1659 Posts
Re: Password Security
May 04, 2012 09:11 PM|LINK
Here is the Solution:
http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx
http://wiki.asp.net/page.aspx/1155/encrypt-connectionstrings-section-of-webconfig/
http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx
Good LucK~~
Mahad Bin Mukhtar
Remember to Mark the replies as Answers
The easiest day was 'yesterday'.
MCP, MCSD
For .NET TECH Blog
ramiramilu
All-Star
95275 Points
14072 Posts
Re: Password Security
May 05, 2012 07:48 AM|LINK
Securing ConnectionStrings - http://msdn.microsoft.com/en-us/library/89211k9b(v=vs.80).aspx
Thanks,
JumpStart
sriramabi
Contributor
4351 Points
1277 Posts
Re: Password Security
May 05, 2012 08:14 AM|LINK
hai
You can refer to the Securing Connection Strings topic in MSDN
http://stackoverflow.com/questions/7581801/how-can-i-hide-my-password-in-my-c-sharp-connection-string
http://stackoverflow.com/questions/2953346/net-sql-server-connection-string-hide-password-from-other-developers
olybobo
Member
401 Points
497 Posts
Re: Password Security
May 05, 2012 06:22 PM|LINK
good solution