Home All Groups Group Topic Archive Search About

Encryption algorithms for product licensing

Author
20 Feb 2005 9:12 PM
Paul Aspinall
Hi
Can anyone point me in the right direction to find some encryption routines
/ algorithms for use with product licensing??

I want to pull data such as the computer name etc etc, and encrypt them
against a string of mine, which will then create a product key.

Does anyone have a piece of code to do this, or any type of encryption that
may be useful in .NET

Thanks


Paul
Author
21 Feb 2005 8:10 AM
Andrea
There are a lot of possibilities.

This is one of them.

Collect some informations (that rarely change) from client ex.: Computer
Name, Network MAC Address, ... and concatenate them into a string.
(ss="PCNAMEAB0F45DC")

Computete Hash Code:
System.Security.Cryptography.SHA1
h=System.Security.Cryptography.SHA1.Create();
byte[] bb=h.ComputeHash(System.Text.UnicodeEncoding.Unicode.GetBytes(ss));
Convert this binary result into hexadecimal string (323426534213423 ==>
XXXXXXXXXXXXXXXX).

Group into small piece if you want (XXXX-XXXX-XXXX-XXXX).

Andrea.



Show quoteHide quote
"Paul Aspinall" wrote:

> Hi
> Can anyone point me in the right direction to find some encryption routines
> / algorithms for use with product licensing??
>
> I want to pull data such as the computer name etc etc, and encrypt them
> against a string of mine, which will then create a product key.
>
> Does anyone have a piece of code to do this, or any type of encryption that
> may be useful in .NET
>
> Thanks
>
>
> Paul
>
>
>
Are all your drivers up to date? click for free checkup

Author
22 Feb 2005 1:40 PM
Pat A
What do you mean by "encrypt them against a string of mine"?  You are
going to provide a key (string) and use that to encrypt your data?
Where would that key be stored?  In the binary? That's not too secure.
Author
28 Feb 2005 3:04 AM
grant
You should think long and hard before you implement any form of
licensing youself that uses product activation (ie locks the license to
a single PC).   Unless you have only a very few customers or else have
enough resources to offer 24/7 email and phone support then I would
look at some of the commercial products (xheo, xenocode etc) that do
this type of licensing and can provide that level of support.

Our company offers a simpler encrypted licensing solution because we
believe that product activation is actually a bad business model - see
our web page for the reasons why (www.infralution.com/licensing.html)

Regards
Grant Frisken

Bookmark and Share