Does sensitive ASP.NET Session data need to be encrypted?

后端 未结 6 1759
既然无缘
既然无缘 2021-01-14 22:47

Do ASP.NET Session[string key] data need to be encrypted to be secure?

If such data always stays on the server, doesn\'t that make it safe to store credit card infor

6条回答
  •  别那么骄傲
    2021-01-14 23:41

    With all the downvotes being thrown around here, I'll add my own two cents:

    I think that anything that stays in server memory, including ASP.NET Session data, is safe in unencrypted form. An attacker would have to be able to execute code on the server in order to read the memory.

    On a side note, once it's stored in a database, data should be encrypted. If it's sent to the client, it should also be encrypted, but that's outside the scope of this question. Lastly, of course, the data must be encrypted on its way from the client to the server.

提交回复
热议问题