
- GAME MAKER STUDIO LICENSE KEY GENERATOR HOW TO
- GAME MAKER STUDIO LICENSE KEY GENERATOR LICENSE KEY
- GAME MAKER STUDIO LICENSE KEY GENERATOR SOFTWARE
- GAME MAKER STUDIO LICENSE KEY GENERATOR CODE
- GAME MAKER STUDIO LICENSE KEY GENERATOR LICENSE
GAME MAKER STUDIO LICENSE KEY GENERATOR CODE
The time saving that I made by doing the entire unit test in NUnit was well worth the effort, I never would have had this much code coverage without using it. Points of Interestĭoing bit shifts in C# is somewhat different than C++ in that they are not allowed on chars only on integers. The third is the NUnit project so that you can add, run and debug the unit tests.
GAME MAKER STUDIO LICENSE KEY GENERATOR LICENSE
The second is an interactive test program so that you can test individual license keys and tokens. One is the library so that when it is built anyone can use it. When you open the solution, you will notice there are three projects. As part of the tests, I also decoded the same key to make sure that whatever I encoded I also decoded the same value. Since the keys are using random numbers, I iterated thirty times in many of the tests to make sure the numbers matched. Another advantage of NUnit was that if I fixed something in one area I could also make sure that I did not break something or another.
GAME MAKER STUDIO LICENSE KEY GENERATOR LICENSE KEY
Since so many variations of a license key can be done I did all of the unit tests using NUnit. Get/set the property to use the different checksum algorithms.Ĭalculate the checksum based on the selected algorithm.

Additional advanced algorithms can be added simply by adding the routine and an enumerated type. The checksum number class uses checksum routines that are pretty basic. The random number class uses the C# Random class but adds some additional methods to support the requirements. Some of the additional classes that I had to write to support the license key generation are a random number generator, a data type parser, a number display class, and a checksum class. The original reason I thought DATE might be of value is it might pack better than just using numbers. At this time I am not sure if you need it since you have NUMBER available to use. I have not finished DATE as of this article but will do so later.

In NUnit, the NUMBER and CHARACTER types are used extensively. The various token types are NUMBER, CHARACTER, and DATE. It also uses hex numbers and bits for the template definition. The second token sets the product to use a token of p with a value of 2. The first token sets the version to use a token of v with a value of 1.
GAME MAKER STUDIO LICENSE KEY GENERATOR HOW TO
This example shows how to create a license key that has two tokens. " -xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx" " -xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx" + Gkey.LicenseTemplate = " vvvvppppxxxxxxxxxxxx" + These two characters are the only two that are reserved.Ī sample of the template and the resulting license key for Byte values and Decimal numbers are: The c character defines a checksum character. The x character states just a filler or random number. The key template has two characters that are defined by default. The next version will not be aligned on a byte boundary so it will be harder to decipher. This version requires that all fields be on the byte boundary so it is a little easier to decipher the end result. Bits are used when there will be more fields and the encoding will be harder to decipher. Bytes are used when the key will be a simple key that does not require a lot of fields and data encoding. Two types of templates are Bytes and Bits.

The license key template is a string of characters that represent what actions will be taken when the key is created and decoded. Most keys are base 16 for all of the numbers. The license keys are created with either a base 10 or base 16 integer data set. Another site that does License keys is SP extreme or Open License. There are various ways to create keys this article shows one such way. In this project, I created an interactive test tool to test the various features of the library.

Since I wanted to put this code in CodeProject I adhered to using NUnit as my unit testing tool, NDoc as my documentation tool, and FxCop as my code analyzer. With a license key you can turn features on and off for each customer, have product feature expire at the end of a demo period, or any other type of enabling or disabling you desire. This is used not only for selling commercial products but also in deploying enterprise applications. With this program and library you can create the key and later read it in to validate that the correct key was used. The keys that are generated show various pieces of information, such as product, customer and version.
GAME MAKER STUDIO LICENSE KEY GENERATOR SOFTWARE
As you know when you get a software package it usually requires a license key. This article is about a license key generation program.
