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.Unico de.GetBytes(ss));
Convert this binary result into hexadecimal string (323426534213423 ==>
XXXXXXXXXXXXXXXX).
Group into small piece if you want (XXXX-XXXX-XXXX-XXXX).
Andrea.
"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