Amit's Blog

Sharing Thoughts and Learning

  Home  |   Contact  |   Syndication    |   Login
  43 Posts | 0 Stories | 233 Comments | 14 Trackbacks

News

About Me?
Read it in
Blog Statistics
Proud Member of

Tag Cloud


Archives

Post Categories

Articles

Book Review

I Visit.

OpenSource Project(s)

Security

This my second post of almost same topic asp.net lacking. This time it is Cookie. Still Asp.net has the lacking of creating encrypted cookie. Here is another handy class which generates encrypted cookie. Usage://Writing CookieSecureCookie.Set(Resp... "Key1", "Value1", DateTime.Now.AddDays(1));Se... "Key1", "Value1"); //Overloaded //Reading Cookiestring key1Value = SecureCookie.Get(Request, "Key1"); SecureCookie: using System;using System.IO;using System.Text;using System.Web;using...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Asp.net 2.0 has been released, but Asp.net still does not have any built-in support for passing querystring in encrypted text. The following class will give you the support to pass querystring in encrypted rather than plain. Usage: //WebForm1.aspx, From the senderSecureUrl url = new SecureUrl("WebForm2.aspx?Ke... WebForm2.aspx?param=HrxR96w... To ReceiverSecureUrl url = new SecureUrl(Request.Url.PathA...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Recently I wrote an article "How to exchange data securely with a WebService without HTTPS/SSL" in codeproject. If Cryptography, Public/Private Key, Digital Signature and Web Service are one of your interest, I strongly recommend to read it...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati