0

I am wondering if its possible to encrypt the ReturnURl before it's displayed to the end user.

I am pretty new at .NET, but I have tried using the PostAuthenticateRequest in the Global.asax. But that doesnt seem to ever fire.

I would be using my own encryption logic if this is even possible.

6
  • 10
    Why on earth do you want to do that? Commented May 5, 2011 at 16:59
  • 1
    Do you perhaps mean "encode"? Are you worried about query parameters in the return url? Commented May 5, 2011 at 17:48
  • this was inherited code, and per our standards is to encrypt any URL parameters. Commented May 5, 2011 at 18:21
  • would love to man...out of my control at the moment Commented May 5, 2011 at 18:40
  • What kind of encryption are we talking here? RSA with keys from your key store? Something symetric like AES? Where do you want to store the key? Does it have to be decrypted? Commented May 5, 2011 at 19:37

1 Answer 1

3

The only reason you would want to do this is if you have sensitive information in the 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.

A .NET Cryptography Primer

Sign up to request clarification or add additional context in comments.

3 Comments

There isn't and sensitive data in the URL.
this was inherited code, and per our standards is to encrypt any URL parameters.
we actually have our own core component to do encryption

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.