1

Possible Duplicate:
How to encrypt query strings in asp.net?

I am creating one project in asp.net 4.0. I want to encrypt/ decript my url for the security reason/ How can i do this

Community
  • 1
  • 1
Saloni
  • 525
  • 2
  • 12
  • 31
  • 4
    What, exactly, do you want to do? What is 'my url'? – J. Steen Jul 25 '11 at 11:28
  • 3
    do you want encrypt url or query string? – Muhammad Akhtar Jul 25 '11 at 11:30
  • i would like to encrypt whole url not only the query string. – Saloni Jul 25 '11 at 11:55
  • 1
    Then how is the user supposed to use it? The browser can't automatically decrypt a URL... – J. Steen Jul 25 '11 at 12:11
  • are you wanting to encrypt part of the url such as. http://mywebsite.com/4j3hr84hj943 Where "4j3hr84hj943" is an encrypted path that your web application will decode and handle appropriately? Or are you talking about securing a connection with SSL? – Kyro Jul 25 '11 at 12:20
  • Can I encrypt Folder Name. Like My page is in www.xyz.com/Abc/a.aspx I want to encrypt Abc Can I do that – Saloni Jul 25 '11 at 12:26
  • @Govind, of course it's possible, if the OP is the proprietor of the server and controls all incoming data. It's not hard to write something that decrypts any URL that enters via an HttpModule, and then redirecting to where they need to go. Of course, the filter for the HttpModule needs to be *very* accepting. – J. Steen Jul 25 '11 at 18:59
  • However, depending on what you *actually* want to achieve, another approach might be better. What *do* you want to achieve? What is the purpose? Why do you want to encrypt the path? – J. Steen Jul 25 '11 at 19:01

1 Answers1

1

This is good article for make URL tamper free... https://web.archive.org/web/20210125142425/https://www.4guysfromrolla.com/articles/083105-1.aspx

Yojimbo
  • 23,288
  • 5
  • 44
  • 48
Govind Malviya
  • 13,627
  • 17
  • 68
  • 94