how set password in code
-
:confused::confused:hii i want know that when we add any data source to the project it has two options 1. No, exclude sensitive data from the connection string, i will add in my application code 2. Yes, include sensitive data in my connection string 2nd option is nuthing anyone can use it but how to use the first option ??? how to add sensitive data in application code ??? how can i do that please provide any easy way as i didnt find it
Mohammad Barzanooni
-
:confused::confused:hii i want know that when we add any data source to the project it has two options 1. No, exclude sensitive data from the connection string, i will add in my application code 2. Yes, include sensitive data in my connection string 2nd option is nuthing anyone can use it but how to use the first option ??? how to add sensitive data in application code ??? how can i do that please provide any easy way as i didnt find it
Mohammad Barzanooni
Keep it in the configuration file but encrypt it...by letting the framework do it for you.1 The .Net process can be used to encrypt sections in the app.config in place. Let me quote from the section Encrypting Configuration File Sections Using Protected Configuration. ".NET 2.0 provides a new feature, called protected configuration, that enables you to encrypt sensitive information in a configuration file. Although primarily designed for .NET, protected configuration can also be used to encrypt configuration file sections in Windows applications."2 Also look into SecureString when handling it in Memory. http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx[^] http://msdn2.microsoft.com/en-us/library/89211k9b.aspx[^] http://msdn2.microsoft.com/en-us/library/system.security.securestring.aspx[^] HTH
Jinal Desai - LIVE Experience is mother of sage....