4 很大 感谢4.5在未来几年约法#1 HttpSecureCookie, A Way to Encrypt Cookies with ASP.NET 2.0 Encrypting Cookie Data with ASP.NET 来源 2011-04-04 10:16:49 Alex +1 警告:微软现在已经过时了System.Web.Security.CookieProtectionHelper类。因此,尽管反思内部课程只要在2.0中就可以工作,但它将在4.5中停止工作。在.NET 4.0中,System.Web.Security.MachineKey类与公共Encode和Decode类一起引入,其工作方式相同(尽管推荐使用Protect和Unprotect)。一旦安装了.Net 4.5.1,您将发现无法再调用CookieProtectionHelper类,即使您仍可能安装了.Net 2.0。 – 2015-12-07 23:12:46
警告:微软现在已经过时了System.Web.Security.CookieProtectionHelper类。因此,尽管反思内部课程只要在2.0中就可以工作,但它将在4.5中停止工作。在.NET 4.0中,System.Web.Security.MachineKey类与公共Encode和Decode类一起引入,其工作方式相同(尽管推荐使用Protect和Unprotect)。一旦安装了.Net 4.5.1,您将发现无法再调用CookieProtectionHelper类,即使您仍可能安装了.Net 2.0。 – 2015-12-07 23:12:46