Save passwords in app.config file?

  • Thread starter Thread starter Luis
  • Start date Start date
L

Luis

Hello All!
I know this may be beginner stuff but...
I was wondering if there is a way to save text from a text box to an
Application Configuration file and maybe hash it so that the text in the
file is not the real text needed to login? I am loking to create simple ftp
client to perform one function, and that is to dl one file, and rename it.
Everything works fine, except I am a bit uncomfortable leaving the password
of the ftp location on the desktop in an App.config file. Also, is there a
way to dynamically set the values in the app.config file at run time?

TIA

Luis
 
* "Luis said:
I know this may be beginner stuff but...
I was wondering if there is a way to save text from a text box to an
Application Configuration file and maybe hash it so that the text in the
file is not the real text needed to login? I am loking to create simple ftp
client to perform one function, and that is to dl one file, and rename it.
Everything works fine, except I am a bit uncomfortable leaving the password
of the ftp location on the desktop in an App.config file. Also, is there a
way to dynamically set the values in the app.config file at run time?

The 'App.config' file should not be used to store user preferences. You
can use XML serialization to save the data to an XML file:

<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/XmlSerialization.zip>
 
Thanks for the reply but I really can't read german! It seems like it would
be great if I could read the comments but...
Thanks again!!

Luis
 
Just a quick question... Once you've hashed the password you won't be able
to retrieve it... So if you are storing it as user preferences to be used
again, you'll have to encrypt it, using an encryption algorithm.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


Luis said:
Thanks for the reply but I really can't read german! It seems like it would
be great if I could read the comments but...
Thanks again!!

Luis

simple
there
a

The 'App.config' file should not be used to store user preferences. You
can use XML serialization to save the data to an XML file:
<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/XmlSerializ
 
* "Luis said:
Thanks for the reply but I really can't read german! It seems like it would
be great if I could read the comments but...

I feel sorry, but I don't have enough time to comment the source in
English. If you have questions, feel free to post them here.
 
It's no problem, dont feel sorry :) I just have the time to learn German! :)

Also, I am not familiar with password encryptiona nd hashin etc... so sorry
if I sounded ignorant!
Thanks again!

Luis
 
Luis,
The proper response you are looking for and Herfried has too much class to
say is a simple "Thank You" for taking his time to post an answer to your
question.
Take the code he gave you and go to

http://www.google.com/language_tools?hl=en

and paste it in.
Sometimes you have to learn to help yourself.

Luis said:
It's no problem, dont feel sorry :) I just have the time to learn German! :)

Also, I am not familiar with password encryptiona nd hashin etc... so sorry
if I sounded ignorant!
Thanks again!

Luis
 
Back
Top