Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating License Keys....

12 views
Skip to first unread message

richard latter

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
Hi all,

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,

Richard...@avellino.co.uk

richard latter

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
Sorry,

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...

richard latter

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
Could I have some C examples

Many thanks in advance

Owen Lawrence

unread,
Mar 10, 2000, 3:00:00 AM3/10/00
to
> Could I have some C examples
>
> Many thanks in advance

Do you honestly think anyone is going to give you source code for a license
key?

- Owen -

Alexander Dymerets

unread,
Mar 13, 2000, 3:00:00 AM3/13/00
to
Hi!

> 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.

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---

0 new messages