Encrypt URL in asp.net

Posted by Zerotoinfinite on Stack Overflow See other posts from Stack Overflow or by Zerotoinfinite
Published on 2010-05-29T16:36:11Z Indexed on 2010/05/29 16:42 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

Hi All,

My site is in asp.net 3.5 and C#. I am sending link to my user through mail, now I want to send each user a specific URL. so instead of sending the clear text I want to send link with encrypted string URL, which I will decrypt on my home page. Like instead of www.mysite.aspx\mypage?userId=12 i'll send www.mysite.aspx\mypage?UserId=)@kasd12

and the same i'll decrypt on my page so that I'll get the userId = 12.

Please let me know if my approach is correct and not and how can I encrypt & decrypt the string in simplest and easier manner.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about security