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...
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...
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...