Category C#

Detect MITM attacks and Secure your clients

The following code demonstrates a dynamic URL generator written in C# for use in ASP.NET, implemented as a static class method, and its corresponding parser module that singles out MITM attackers by detecting multiple IP address mismatches originating from the…

Symmetric key Encryption and Decryption

I saw many of the applications with out basic level of security with respect to data transfer etc. Few people uses Base64 Encoding while sending data through URL which is a common practice. But a simple Javascript code can reverse…

Session Threats and Counter Measures

Session management for Web applications is an application layer responsibility. Session security is critical to the overall security of the application. Top session management threats include: ● Session hijacking ● Session replay ● Man in the middle Session Hijacking A…

Single Sign On Implementation

Most of today’s sites require users to undertake a registration process to allow the site owners to keep in touch with, or offer services to, those visitors. Building up a user base like this requires patience and dedication. Offer a…

A Look into Web.Config

Applications of XML have been integrated into .NET to such an extent that XML is hardly a buzzword anymore. Microsoft, as you probably know, has taken XML into the core of its .NET framework. Not only is XML a generally…

IComparable vs IComparer

In .NET some of the collection types such as Array, ArrayList, List<T> expose the Sort method that allows you to sort the collection. In order for those classes to sort the collection, there has to be a way for them…

MSIL De-Compiler Working Mechanism

Introduction Welcome to my journey of writing a .NET assembly de-compiler. First of all I’ll try to develop a theory to decompile MSIL. I just do whatever a MSIL instruction ask me to do. But I do it keeping in…

Learning LINQ Part-2

LINQ (Language INtegrated Query): 1) LINQ is a technique for querying data. 2) We can easily retrieve data from any object that implements the IEnumerable<T> interface using LINQ. 3) LINQ supports IntelliSense and objects are strongly type-safe on the other…