We are writing a set of application for windows which contains IE toolbar, Firefox toolbar and Windows Desktop client.
Before using any of these components user provides his secret code and says that he need to save this code for 1hr or whatever option he chooses.
Now the challenge for us is that we have to use the same secret code to decrypt his data while he uses in all 3 component, Currently we are writing that secret key in a plain file with AES encryption with a specific key buried in the source code and all 3 component access that key from that file.
Now please suggest me better way in light of following limitations/requirement.
Can some one help me in this.
Regards
Have you tried DPAPI?
http://msdn.microsoft.com/en-us/library/system.security.cryptography.protecteddata.aspx
http://msdn.microsoft.com/en-us/library/ms229741(v=VS.85).aspx