View previous topic :: View next topic |
Author |
Message |
magixxfactory
Joined: 20 Feb 2006 Posts: 15
|
Posted: Tue Jan 22, 2013 7:51 pm Post subject: Sample EncryptedLicenseProvider Custom Generator |
|
|
Hello,
is there a sample available (or may you provide one) how to use a custom generator (EncryptedLicenseProvider) without Authentication and how to write and read the additional data (like Name and Mail) to the created lic. file ?
Thanks and regards
Uwe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jan 22, 2013 9:31 pm Post subject: |
|
|
What version of ILS are you using?
The Custom Generator sample project included in the latest version 5.8 sets AuthenticationData for the generated License Key. The method is the same for Encrypted License keys except that you set the ProductInfo.
Prior to ILS 5.8 the Custom Generator sample project (and Custom Licensed Application sample project) demonstrated using a custom generator with Encrypted Licenses and ProductInfo. _________________ Infralution Support
Last edited by Infralution on Wed Jan 23, 2013 9:07 am; edited 1 time in total |
|
Back to top |
|
|
magixxfactory
Joined: 20 Feb 2006 Posts: 15
|
Posted: Wed Jan 23, 2013 8:42 am Post subject: |
|
|
I'm using the 5.8.
I looked into the sample and was a little confused as the sample shows the Authentication way. So I also can use the sample also for Encrypted Licenses ?
I will try it and come back if I fail.
Regards
Uwe |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jan 23, 2013 9:14 am Post subject: |
|
|
The CustomGenerator part is the same except that you set ProductInfo instead of AuthenticationData. Because every character of ProductInfo increases the length of the generated key by 2 characters (in blocks of 8 ) you want to keep the size of the ProductInfo as short as possible. So you definitely don't want to use XML like the AuthenticationData sample does. If you put customer names in the ProductInfo then the license key may also become very long. So another trick is to put a checksum of the name (using LicenseUtilities.Checksum) instead of the name in the ProductInfo - then in your application you have the user enter the name and you check that it matches the CheckSum in the ProductInfo. It depends on how worried you are about long license keys. _________________ Infralution Support |
|
Back to top |
|
|
|