zoukankan      html  css  js  c++  java
  • Data Protection


    According to ASP.NET Key Management:

    Deleting a key is truly destructive behavior, and consequently the data protection system exposes no first-class API for performing this operation.

    Is the expired key still being used to unprotect data previously protected by that key even that key is expired?


    Are the expired key kept forever even it might not have any more data protected by it?


    Is it a bad practice to delete the key even it is not needed to unprotect any data?

    I think currently we need it for the cookie authentication only. The worse case of deleting the key is the user may need to relogon.

    What else from ASP.NET Core need the data protection by default?


    Is the expired key still being used to unprotect data previously protected by that key even that key is expired?
    Yes.


    Are the expired key kept forever even it might not have any more data protected by it?
    Yes, because we have no way of knowing how you used it, or whether any data still exists.


    Is it a bad practice to delete the key even it is not needed to unprotect any data?
    Probably not, but you as the developer can use data protection for your own data. We can't know whether you did or not.


    What else from ASP.NET Core need the data protection by default?
    Parts of OAuth login flow, session and temp data. But those are really short lived.

    原文链接

  • 相关阅读:
    网络技术
    AWS责任共担模型
    AWS 创建新用户(IAM用户)
    AWS系列-申请Redis
    AWS系列-申请MySQL
    MDX之Case When用法
    SSAS中雪花模型
    SSAS中处理时经常出现的几种错误
    C#连接Oracle中文乱码问题解决方法
    BI中PowerDesigner建模
  • 原文地址:https://www.cnblogs.com/OpenCoder/p/10347757.html
Copyright © 2011-2022 走看看