Page 1 of 1

How to get program version from registration key?

Posted: Tue Dec 17, 2013 7:57 am
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.

Re: How to get program version from registration key?

Posted: Tue Dec 17, 2013 3:19 pm
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.