简体   繁体   English

在ASP.NET中加密ReturnURL

[英]Encrypting the ReturnURL in ASP.NET

I am wondering if its possible to encrypt the ReturnURl before it's displayed to the end user. 我想知道是否有可能在将ReturnURl显示给最终用户之前对其进行加密。

I am pretty new at .NET, but I have tried using the PostAuthenticateRequest in the Global.asax. 我在.NET上还很新,但是我尝试在Global.asax中使用PostAuthenticateRequest。 But that doesnt seem to ever fire. 但这似乎从未触发。

I would be using my own encryption logic if this is even possible. 如果可能的话,我将使用自己的加密逻辑。

The only reason you would want to do this is if you have sensitive information in the URL. 您要这样做的唯一原因是,如果URL中包含敏感信息。

And if you have sensitive data in the URL -- 如果网址中包含敏感数据,

Don't. 别。

And also, don't use your own encryption logic. 而且,不要使用您自己的加密逻辑。 Someone else has already done the heavy lifting for you. 别人已经为您完成了繁重的工作。 This is definitely one area you don't want to reinvent the wheel. 这绝对是您不想重蹈覆辙的领域。

.NET includes plenty of ways to encrypt your data. .NET包含多种加密数据的方法。

A .NET Cryptography Primer .NET密码学入门

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM