SIGN UP MEMBER LOGIN:    
ARTICLE

Simple Registration Framework-XML signatures

Posted by Ivan Zderadicka Articles | XML in C# February 13, 2003
This project provides simple tools, which add a "shareware like" registration support to .NET application.
Reader Level:
Download Files:
 

This project provides simple tools, which add a "shareware like" registration support to .NET application. Registration is assured through registration token (XML file), which has to be present together with application - so it is off-line registration scheme. I've created it for one of my applications, but it is general and can be easily leveraged in other projects.

The registration framework is based on XML signatures and uses System.Security.Cryptography.Xml assembly. Registration tokens are created as XML signed documents, which contain user details, registration type, expiration, etc. The application contains public key (compiled into application IL code) and can easily check validity of the registration token. Breaking this registration scheme requires modification of application IL code - either to eliminate registration checking functions or to replace public key with false one and then create also false registration token.

This simple framework consists of library, Winforms tool and test application:

Library (RegistrationSDK) contains these three main classes:

  1. RegInfo - contains registration info, object representation of registration token
  2. RegCreator - creates signed XML registration token
  3. RegValidator - checks signed XML validation token

Winforms tool (Registration manager) manages registration, it uses MS JET database to maintain two tables - application and registrations (licenses). It enables to:

create key pair for application (and copy it as code declaration for inclusion into application code); also this info is stored in table create signed XML registration token for given application (and enables to save or copy XML token); also all registrations are stored in table Test application (TestApp) demonstrates usage of framework in an application.

Login to add your contents and source code to this article
share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor