A
Andy Fish
Hi,
I want to add a licence key to my java program - some kind of encrypted
string that tells the program what features are and aren't available etc.
Here's the problem - say I have a class like this:
class LicenceKey()
{
LicenceKey(String s) {...}
Date getLicenceExpiryDate() {...}
boolean isFeatureXEnabled() {...}
boolean isFeatureYEnabled() {...}
}
then someone else can just delete that class out of my JAR, and replace it
with their own class with the same method signatures that behaves as if any
licence key was valid.
is there any "proper" way round this (i.e. other than obfuscation)?
Andy
I want to add a licence key to my java program - some kind of encrypted
string that tells the program what features are and aren't available etc.
Here's the problem - say I have a class like this:
class LicenceKey()
{
LicenceKey(String s) {...}
Date getLicenceExpiryDate() {...}
boolean isFeatureXEnabled() {...}
boolean isFeatureYEnabled() {...}
}
then someone else can just delete that class out of my JAR, and replace it
with their own class with the same method signatures that behaves as if any
licence key was valid.
is there any "proper" way round this (i.e. other than obfuscation)?
Andy