Best way to store encryption keys in .NET C#

后端 未结 6 743
粉色の甜心
粉色の甜心 2020-11-29 20:06

In our application we have a lot of sensitive configuration settings, which we are storing in a xml file which is again encrypted.

This secure file has to be decrypt

6条回答
  •  隐瞒了意图╮
    2020-11-29 21:05

    Generally, a new key and IV should be created for every session, and neither the key nor IV should be stored for use in a later session.

    To communicate a symmetric key and IV to a remote party, you would usually encrypt the symmetric key and IV using asymmetric encryption. Sending these values across an insecure network without encrypting them is extremely unsafe, as anyone that intercepts these values can then decrypt your data. For more information on this process of encrypting and transferring the key and IV, see Creating a Cryptographic Scheme.

提交回复
热议问题