Coding Thread, C# Storing a password safely in Coding and Web Development; I've got an application which sends emails out via an external SMTP server. It currently uses the poor practice of ...
7th December 2009, 03:56 PM #1
C# Storing a password safely
I've got an application which sends emails out via an external SMTP server. It currently uses the poor practice of having the server address, username and password details stored within the code itself. A nightmare for maintenance.
So, I want to know if there's some easy way to store this config for use. I don't want the password stored in plaintext is the problem.
I'd also prefer not to have to have the user enter their password each time the program opens either.
IDG Tech News
7th December 2009, 04:46 PM #2
Investigate the System.Security.Cryptography and System.IO namespaces.
8th December 2009, 10:42 AM #3
I've now discovered this Using Credential Management in Windows XP and Windows Server 2003
Which looks like it does what I will want it to do.
Thanks to localzuk from:
LosOjos (6th January 2010)
6th January 2010, 12:27 PM #4
Thanks for bringing this to my attention localzuk, it'll come in very handy for a couple of SIMS/Access projects I'm working on
6th January 2010, 12:32 PM #5
I found a slight issue with it in the end. The SecureString object type has very limited uses at the moment. Until the next version of the .Net framework comes out anyway.
By azadsani in forum Virtual Learning Platforms
Last Post: 10th August 2009, 04:15 PM
By klop in forum Windows Server 2008
Last Post: 12th May 2009, 12:40 PM
By cheredenine in forum School ICT Policies
Last Post: 10th June 2008, 01:53 PM
By phillipmillward in forum Windows
Last Post: 21st March 2007, 05:49 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)