Possible Duplicate:
WIN32_Processor::Is ProcessorId Unique for all computers
I'm creating an application with a trial feature. To detect if a certain user already used a trial the application connects to my server with their machineHash
.
The machineHash
function look like this:
string cpuInfo = string.Empty;
ManagementClass mc = new ManagementClass("win32_processor");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if (cpuInfo == "")
{
//Get only the first CPU's ID
cpuInfo = mo.Properties["processorID"].Value.ToString();
break;
}
}
return cpuInfo;
However, it does report my processor ID as BFEBFBFF000206A7
(on two different Intel machines, i5 and a Celeron). Googling BFEBFBFF000206A7
has hits too, so it's not unique.
Could anyone tell me why this is not unique? I don't want to use the VolumeSerial of let's say the C:\
drive as that can be easily changed with a simple command.