How to securely handle AES “Key” and “IV” values

后端 未结 5 1733
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 20:50

If I use AES (System.Security.Cryptography) to simply encrypt and decrypt blob or memo fields in a SQL server, then where do I store the “Key” and “IV” values on the server?

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 21:15

    Segregating your web server and db server would be helpful here. You want to lock down access (permissions-wise) to your encryption keys, and keep them in memory as SecureString. Can't do much more than that. Choose strong passwords and follow up-to-date security practices.

    Here's a good post as well Where to Store Encryption Keys MVC Application

提交回复
热议问题