Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon May 15, 2006 6:18 am Post subject: How do I handle compromised keys? |
|
|
If you are using Authenticated Licenses (new in Version 4) then you can use the facilities in License Tracker to set the Max Authentication limit for the compromised license key to zero and delete any existing authentications for the key. This will prevent this license key being installed on any more computers. In addition you can use the AuthenticatedLicenseProvider.IsAuthenticated method in your code (as described in How do I handle transferring Authenticated Licenses?) to have the application check its license authentication is still valid.
If you are using Encrypted Licenses then it is relatively simple to put any compromised keys out of action in the next release of your software. Just check the license SerialNo against a list of known compromised serial numbers and take appropriate action. For instance:
Code: |
EncryptedLicense license = provider.GetLicense();
if (license != null)
{
switch (license.SerialNo)
{
case 45:
case 92:
MessageBox.Show("This is a pirated license key", "Pirated License Key");
// exit the app here
break;
}
}
else
{
// no license installed
} |
This approach can also be used for Authenticated Licenses. _________________ Infralution Support |
|