Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / July 2004

Tip: Looking for answers? Try searching our database.

Where to store UserID/Password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fernandez - 29 Jul 2004 11:19 GMT
Hi,
Where can I store username password information my ASP.NET project.
I am not using any database.
I preferred to store in Application Configuration File.
Suggestions are welcome.
Signature

Rgds,
Fernandez

Hernan de Lahitte - 30 Jul 2004 17:04 GMT
Configuration files are definetly a bad place to store sensitive data like
user credentials. Here you have some guidelines about storing sensitive data
on config files:
http://msdn.microsoft.com/msdnmag/issues/03/11/ProtectYourData/default.aspx

You don't have a silver bullet here but you should add as many security
levels as you can (defense in deep).
One common approach is to store a regristry path in your config file and
save in that registry entry (with strong ACL) the encrypted data with DPAPI
(local machine mode). You just have a tool that do this here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;329290

Then you have to decrypt this data and here you have this sample:

string decryptedData = Encoding.Unicode.GetString( ProtectedData.Decrypt(
registryBytes ) );

ProtectedData is the managed DPAPI wrapper in the Open Source NCrypto
proyect.
registryBytes is the byte array from the registry entry that create the tool
mentioned above.

You may get the NCrypto proyect from here:
http://sourceforge.net/projects/ncrypto/

Signature

Hernan de Lahitte
Lagash Systems S.A.
http://weblogs.asp.net/hernandl

This posting is provided "AS IS" with no warranties, and confers no rights.

> Hi,
> Where can I store username password information my ASP.NET project.
> I am not using any database.
> I preferred to store in Application Configuration File.
> Suggestions are welcome.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.