开发者

Best practices for storing secret keys

开发者 https://www.devze.com 2022-12-22 07:12 出处:网络
I have an asp.net app, and I want to store a machine wide encryption key that I will be using in the apps, when using DPAPI crypto system.

I have an asp.net app, and I want to store a machine wide encryption key that I will be using in the apps, when using DPAPI crypto system.

开发者_Python百科

What are the best practices to store the key - where do I store it?

Thanks.


It very unsafe to store any key as plaintext in any non-volatile and inherently insecure medium (such as a Hard Drive). On such mediums, you should only store a signed encrypted version of a key, and write-access to the encrypted key should be secured.

The real work at hand is to model the security needs, to determine the key-management policy and implementation.

0

精彩评论

暂无评论...
验证码 换一张
取 消