Shared but Secure Memory between 3 Different Apps (Windows)

大憨熊 提交于 2019-12-26 06:50:53

问题


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.

  1. All 3 components are fully/partially written in .Net.
  2. IE uses the protected mode so no high privileged resource can be accessed
  3. the data of the user is encrypted with his own security key hence it is must for us to have his key to decrypt his data. and when he quits we loose this key to ensure the security.
  4. All 3 components runs in low privileged processes.

Can some one help me in this.

Regards


回答1:


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



来源:https://stackoverflow.com/questions/4790551/shared-but-secure-memory-between-3-different-apps-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!