THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/03/2011 at 14:17, xxxxxxxx wrote:
Works pretty fine now, thanks for your help !
Yeah, it's just some caclulation with some of the digits of the c4d serial. As you all said, if they really want to crack it, they will do. So my aim was just, that it won't be too easy to get an illegal license for my Plugin.
Thanks to you all for the help
PS: Just an *example* of how I'm doing it, maybe someone reading this did still not understand it:
// Private Function for you as developer to create a license.
// Overload the customers license as a String
CreateLicense(ser) {
ser = int(evaluate(strmid(ser,6,5)));
var license = Modulo(pow(ser/92732,3),81638);
return license;
}
// CheckLicense creates a license the same way as CreateLicense and compares it with the
// Plugin License entered by the user
CheckLicense(lc) {
var ser = SysGetUserInfo(0);
var rightlicense = CreateLicense(ser);
if(rightlicense != lc) return false;
return true;
}