possible searches to get started
salt hash password
asp.net authentication
asp.net forms authentication
customize (or override) asp.net forms authentication
ado.net code samples *
*assumes you are saving the audit history to a relational database.
chances are your best bet is to subclass the existing forms authentication. added the logic which validates the password has not been used in the last 10 changes.
there will not be a specific example about 10 password iterations.
1. 10 is arbitrary. it could just as easily be 5, 50, 500
2. where you store the password is independent of the logic required to validate the password. you could store user credentials anywhere. most common is a relational database, but that is only one option for persistent storage.
3. user passwords is just one specific context you can iterate over any collection.
i would probably take this approach if i was getting started:
1. get forms authentication working
2. get forms authentication working with a salted/hashed password. i don't think it does this by default.
3. introduce the audit table to store the recent history (last 10 salted/hashed passwords).
4. incorporate the audit query as part of validation.
Jason Meckley
Programmer
faq855-7190
faq732-7259