How to get program version from registration key?

Post here any topics that related to Enigma Protector, its functionality, your misunderstanding, offers to improvements etc etc etc
Post Reply
Oleg
Posts: 10
Joined: Mon Feb 14, 2011 2:41 pm

How to get program version from registration key?

Post by Oleg »

Hi!
Is there a possibility to get the app version (as entered in "Product Info -> Version" of Input page of protection dialog) from registration info with Enigma API?

I need it to check for what version the key has been generated and then restrict using the same key for new version of the application. Or there is another way to do it?

Thanks beforehand,
Oleg.
Enigma
Site Admin
Posts: 2939
Joined: Wed Aug 20, 2008 2:24 pm

Re: How to get program version from registration key?

Post by Enigma »

Hi Oleg,

The product version is not hardcoded into the key, there is no standard way to put the version number into the key.

As a workaround, you may encode the version using decrypted sections. Each key may have up to 16 sections, imagine that each section is a bit value. 16 sections = 16 bits and the maximum value of 0xFFFF which is enough to hardcode the version number into the key.

In the application, you may call the function EP_RegKeyInformation to check what sections are decrypted by the key and restore the hardcoded version number bit-per-bit.
Post Reply