Does anyone have any experince of creating license keys for software and
could anyone point me in the direction of any examples of creating license
keys.
Cheers for now,
Could I have some C examples.....
Thanks in advance...
R.
richard latter <richard...@hotmail.com> wrote in message
news:952698097.6819.0...@news.demon.co.uk...
Many thanks in advance
Do you honestly think anyone is going to give you source code for a license
key?
- Owen -
void generate_numbers()
{
int i;
printf("Serial numbers: \n");
for(i = 1000; i < 2000; i++)
printf("%04x-%04x-%04x\n", i, ((int)sqrt(i)*4 + 129) & 0xffff,
(i*i - 30) & 0xffff);
}
int check_number(char* key)
{
int n1, n2, n3;
sscanf(key, "%x-%x,%x", &n1, &n2, &n3);
return n2 == ((int)sqrt(i)*4 + 129) & 0xffff && n3 == (i*i - 30) & 0xffff;
}
I hope, it's clear.
--
Alexander
---Renewed shall be blade that was broken---