C# Class ComponentFactory.Krypton.Ribbon.EncryptedLicense

Defines an encrypted license for a component or control generated using the Infralution Licensing System.
The Infralution Licensing System provides a secure way of licensing .NET controls, components and applications. Licenses are protected using public key encryption to minimize possibility of cracking.
Inheritance: License
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
Checksum ( string input ) : string

Returns a four character checksum based on the given input string

This function can be used to generate a short checksum that can be embedded in a license key as ProductInfo. This allows you to tie the license key to information supplied by the user (for instance the name of the purchaser) without having to include the full information in the license key. This enables license keys to be kept reasonably short.

When the license is checked by the application it performs a checksum on the information supplied by the user and checks that it matches the information in the ProductInfo that was generated when the license was issued. The License Tracker application provides support for "CustomGenerators" which allow you provide the code to generate the ProductInfo from customer and other information.

Dispose ( ) : void

Cleans up any resources held by the license

EncryptedLicense ( string key, UInt16 serialNo, string productInfo ) : System

Create a new Infralution Encrypted License

Method Details

Checksum() public static method

Returns a four character checksum based on the given input string

This function can be used to generate a short checksum that can be embedded in a license key as ProductInfo. This allows you to tie the license key to information supplied by the user (for instance the name of the purchaser) without having to include the full information in the license key. This enables license keys to be kept reasonably short.

When the license is checked by the application it performs a checksum on the information supplied by the user and checks that it matches the information in the ProductInfo that was generated when the license was issued. The License Tracker application provides support for "CustomGenerators" which allow you provide the code to generate the ProductInfo from customer and other information.

public static Checksum ( string input ) : string
input string The input string to return a checksum for
return string

Dispose() public method

Cleans up any resources held by the license
public Dispose ( ) : void
return void

EncryptedLicense() public method

Create a new Infralution Encrypted License
public EncryptedLicense ( string key, UInt16 serialNo, string productInfo ) : System
key string The key for the license
serialNo System.UInt16 The serial number of the license
productInfo string The product data associated with the license
return System