Program that saves user information to an ecrypted file
===

I'm writing a program that asks the user for a username and password.  I also want to be able to save this information if they so choose, but I don't want to have my program create a simple plain text file that anyone can open.  How can I have my c++ program write to an encrypted file and be able to access it when the program is launched later? 

Thanks