account information encryption

Oct 1 2007 11:39 AM
Hi I'm writing a simple client that log on to multiple email accounts and check if there are any new mail. What I need is to store the account information in a secure way. Right now I'm storing it in xml-format in a file called accounts.dat. how do I encrypt that in a secure way and make sure I can decrypt it later? //T