License Algorythm
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 09:48, xxxxxxxx wrote:
This might be helpful.
https://developers.maxon.net/forum/topic/4842/4746_weird-serial-number-issue&KW=serial&PID=19201#19201 -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 09:55, xxxxxxxx wrote:
This link shows you one way to build a serialization setup. The actual algorith can be anything. In the past I have used the last five digits of the person's serial number and then did some calculations to that number. For example:
get the last five digits of the serial and store them in a LONG let's say that is named "serial".
Then make any algorthim that uses serial and is true.
Like: serial + 99 /7 + 45 / 35 + 400 * 6;
This is of course a ridiculous example and is not what I would personally use but it shows that as long as you have the last five digits of the serial, you can make any algorthm out of it.
This is not the best, most secure serialization, but it is one example of how you could do it.
~Shawn -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 17:44, xxxxxxxx wrote:
I use Rijndael encryption/decryption (open source). Simple (and easily cracked) but it does create unique strings for the input string. You can be more Draconian but remember that even Windows has been cracked (with who knows how many billions of dollars and thousands of programmers involved to avoid just that). Not worth going to far with it.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 17:50, xxxxxxxx wrote:
Yeah I honestly don't think it's worth spending too much time trying to make the serial uncrackiable because that's virtually impossible and will drive you nuts. HAHA Go with something that works best for you and makes the serialization process easy on your customers..
@Robert
I'll have to check Rijndael out. Is it very difficult to incorporate it in to your plugins?~Shawn
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 18:46, xxxxxxxx wrote:
Not much work at all. There are some minor modifications between Windows and MacOS but that is about it.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2011 at 21:58, xxxxxxxx wrote:
Yeah, of course. But I just want to avoid that everybody needa the same license, or the license process does not work in some kind of way. And I want My plugij beeing compatible with only one c4d license.
Thanks emberintherain. I'll try that. What, if there comes out a float ? If i want to recalculate the serial back to the license, to compare if it's right, it might not be exactly the right result, because of the integer conversion ?Is rijandael a program ? How did you build it into your plugin ?
Thanks, nux
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2011 at 08:40, xxxxxxxx wrote:
Rijndael is just an encryption/decryption algorithm. You can find source code online in many programming languages.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/03/2011 at 12:12, xxxxxxxx wrote:
Hm, actually couldn't find something like a calculation ?
Or how is it actually done ? I couldn't understand what Wikipedia said, my knowledge is not that good I think.I don't think my Plugin is that Super-Duper that everyone wants it and somebody tries to crack it.
I just want to make sure that everyone recives another license.So it would really be enough to make a calculation like this ?
//dgt: last 5 numbers of serial serial = dgt*123 dgt = serial/123
Just for example ?
In a bit more complex way, nobody would get the way of calculating it, right ?But what if there comes out a float ? I can't let the user Type in a long float number.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/03/2011 at 12:24, xxxxxxxx wrote:
yes that would work. You might want to make the algorithm a little bit more complicated than that.. Lol just so it's not quite so easy to make a serial gen for it. Shawn
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/03/2011 at 12:32, xxxxxxxx wrote:
Hehe ok, thanks.
But, i now tried something like this:
var ser = SysGetUserInfo(0); ser = evaluate(strmid(ser,6,5)); var lc = ser*(pow(ser/10000,2)); println(lc);
The problem is, there comes out a float with decimals .. How to solve that ? If i don't want the User to type in decimals, the recalculation will not deliver the right result. I would need a tolerance ?!
// OMG
I could just use exactly this algorythm again and then comapre theese numbers ^^
Thanks haha -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/03/2011 at 12:48, xxxxxxxx wrote:
I think if you make it a LONG or an int.. there will be no decimals
~Shawn
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/03/2011 at 03:21, xxxxxxxx wrote:
Originally posted by xxxxxxxx
I think if you make it a LONG or an int.. there will be no decimals:)~Shawn
Unfortunately you can't do that in COFFEE (the example given was in COFFEE) because it doesn't have variable typing. You'd have to use C++.
In any case, no matter what you do they'll break it. All you need is a simple algorithm that ensures legit users get their own license - just to remove the temptation to share it with others, really. The real black hats can break any protection. They even broke Vray for C4D, which uses a commercial protection system that's supposed to be pretty good.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/03/2011 at 04:44, xxxxxxxx wrote:
LOL.. sorry I think in C++.. But yeah definitely don't bend over backward to do this because those wonderful crackers out there have nothing better to do than to crack it.. So they will do it no matter what you do. So simple is better.. I agree.
~Shawn
-
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; }