View previous topic :: View next topic |
Author |
Message |
Fabio Guest
|
Posted: Thu May 04, 2006 9:19 am Post subject: Long license key |
|
|
I got this error: Quote: | The license key being imported or generated is too long to store in the License Tracker database. Reduce the lenght of the key by reducing the size of the Product Info string |
but I need to store a list of website's domains and they can be virtually unlimited. The lenght of the license is not a problem because user don't insert it by hand, we supply a custom .lic file.
Another question: is it possible to customize the lenght of the code blocks?
License format is xxxx-xxxx-xxxx-xxxx, is it possible to use x
xxxxxxx-xxxxxxxx or xxxxxxxxxxxxxxxx?
Fabio |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu May 04, 2006 10:34 pm Post subject: |
|
|
You should avoid storing the actual domains in the key - otherwise the key will get VERY long and unmanageable for both you and the user. Instead send the list of licensed domains to the end user as clear text eg
Then create a hash for this text and store the hash in your license key. Then you create a custom license dialog which allows the user to enter both the license key and this text with the licensed domains. When you read the license key and the text you validate that the hash matches.
This has the advantage that it is very clear to the user what their license supports. See the Custom Licensed Application sample for an example of this technique.
The licensed domains text can be stored in the comments field of the License Tracker database (which is a memo field). The Custom Generator sample app illustrates how to do this automatically. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|