Yep, you can quite easily store usernames and passwords in an .ini file and
encrypt one or both. I recommend you create an xml file for this use since
you then can use it as a database with .net's built-in xml functions.
It's been a while since I've written something like this, but you need a
xml file and a following xml schema. At run time you can load this file
like you would when connecting to any database server, and check if a
specific username and password matches.
You can encrypt the password with
Password = FormsAuthentication.HashPasswordForStoringInConfig File(Password,
"SHA1");
Then you simply compare the encrypted password with the stored encrypted
password.
--
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/