I have an application that monitors directories for certain file events. If a certain condition is met a notification is emailed to a specific recipient. If the recipient is internal to the company then I don't have to supply a user name and password for email authentication. But, however, if it the email is external to the company I have to supply credentials (Our email back-end Exchange and AD). Email options are configurable so that the user can enter up to 3 email addresses. I only have to use one set of credentials. The question I have is (and maybe another point of view would help): What would be the best way to store these authentication credentials? All email option values have to be remembered which I currently use my.settings feature to store all values, except the user name and password, at the moment. I would like the username and password to be remembered, as well, but obviously the password would have to be encrypted. I've found info on how to encrypt and decrypt but I'm not sure how I would take the encrypted form of the password string and store it my.settings variable.
Any insight or advice on how to best achieve my goal would be great.
Any insight or advice on how to best achieve my goal would be great.