- #How to get hardware id for keygen activation code#
- #How to get hardware id for keygen activation key#
- #How to get hardware id for keygen update#
- #How to get hardware id for keygen software#
#How to get hardware id for keygen software#
For example, if I buy your software and my hard drive dies on me, with your current setup I would have no way to recover my software. the way your current scheme is set up, you are going to risk making your customers very upset.
#How to get hardware id for keygen activation code#
If the same license key is ever used to install the software on another machine, you will compare the computed activation code for that installation against the one you have stored on your server and deny the installation if the codes do not match. The hash you generate will be the activation code that you're looking for. When the user installs the software, you take your unique hardware key, concatenate that with the license key, and hash the result. When the user buys your software, generate a unique GUID for the license. The simple solution would be something like this.
#How to get hardware id for keygen update#
I hope my doubt is clear.If not please let me know,I'll update the question with more information
#How to get hardware id for keygen activation key#
My aim is to implement strict licensing scheme.As shown in the diagram given below,I am able to generate a unique machine or Hardware ID using the above code.īased on the Machine ID or Key,I wish to generate an Activation Key so that it would be unique and can be used only on one machine because the Activation key would be generated from that Machines MachineID Return identifier("Win32_NetworkAdapterConfiguration",
+ identifier("Win32_VideoController", "Name") Return identifier("Win32_VideoController", "DriverVersion") + identifier("Win32_BaseBoard", "SerialNumber") + identifier("Win32_BaseBoard", "Manufacturer") Return identifier("Win32_BaseBoard", "Model") + identifier("Win32_DiskDrive", "TotalHeads") + identifier("Win32_DiskDrive", "Signature") + identifier("Win32_DiskDrive", "Manufacturer") Return identifier("Win32_DiskDrive", "Model") + identifier("Win32_BIOS", "ReleaseDate") + identifier("Win32_BIOS", "SerialNumber") + identifier("Win32_BIOS", "IdentificationCode") + identifier("Win32_BIOS", "SMBIOSBIOSVersion") Return identifier("Win32_BIOS", "Manufacturer") RetVal += identifier("Win32_Processor", "MaxClockSpeed") RetVal = identifier("Win32_Processor", "Manufacturer") If (retVal = "") //If no Name, use Manufacturer RetVal = identifier("Win32_Processor", "Name") If (retVal = "") //If no ProcessorId, use Name RetVal = identifier("Win32_Processor", "ProcessorId") If (retVal = "") //If no UniqueID, use ProcessorID String retVal = identifier("Win32_Processor", "UniqueId") Don't get all identifiers, as it is very time consuming Uses first CPU identifier available in order of preference
Private static string identifier(string wmiClass, string wmiProperty) moc = mc.GetInstances() įoreach ( mo in moc) (string wmiClass, string wmiProperty, string wmiMustBeTrue) Private static string GetHexString(byte bt) Return GetHexString(sec.ComputeHash(bt)) MD5 sec = new MD5CryptoServiceProvider() Private static string fingerPrint = string.Empty įingerPrint = GetHash("CPU > " + cpuId() + "\nBIOS > " + / Generates a 16 byte Unique Identification code of a computer This code generates Hardware Key using System I am trying to implement Hardware locked Licensing.I found the following code from codeproject that generates hardware id(Machine ID)