resolved - How uniquie is the cpu id ?
how unique is this ? will i ever get duplicates ? and will it ever change ?
... i want some way of relating my software to the customer .... is there a system GUID?
Code:
Function GetCPUID() As String
Dim sReturn As String = ""
Try
Dim objMOS As ManagementObjectSearcher
Dim objMOC As Management.ManagementObjectCollection
Dim objMO As Management.ManagementObject
objMOS = New ManagementObjectSearcher("Select * From Win32_Processor")
objMOC = objMOS.Get
For Each objMO In objMOC
sReturn = objMO("ProcessorID")
Exit For
Next
objMOS = Nothing
objMOC = Nothing
objMO = Nothing
Catch ex As Exception
'# error getting cpu id
myErr.WriteToErrorLog(ex.Message, Environment.StackTrace, "Error returning system ID.")
End Try
Return sReturn
End Function
Re: How uniquie is the cpu id ?
I believe each CPU has a different ID, but I could be mistaken.
Re: How uniquie is the cpu id ?
So when the user of your program buys a new computer he cannot use it any more?
Re: How uniquie is the cpu id ?
I'd like to hope there'd be a system where the user can change their license key to match their system's.
Re: How uniquie is the cpu id ?
so i can keep track of who is using the software ... and yes I am putting in place a customer database so they can request a new licence key via the telephone, email and website.
ensures that when i update the software only the registered users get the update and I can ensure to some extent they dont take the piss and install it on 20+ pcs.
if i hard code everything (registration keys & encryption keys) it makes it less secure
Re: How uniquie is the cpu id ?
Re: How uniquie is the cpu id ?
The ProcessorID is not unique at all. It doesn't identify the individual processor. Intel tried that some years ago and there was an uproar about privacy. The value you're getting there identifies the TYPE of the processor, not the processor itself.
Re: How uniquie is the cpu id ?
thank you mcj ... ill look for another way of doing this ;0)
is there something similar?
Re: How uniquie is the cpu id ?
U should try to use the HD id and the MAC id.
That what i wanted to write before but i was searching for some info on the processor id.
Re: How uniquie is the cpu id ?
Quote:
Originally Posted by
sapator
U should try to use the HD id and the MAC id.
That what i wanted to write before but i was searching for some info on the processor id.
that sounds better these should be easier to access
Re: How uniquie is the cpu id ?
It's the same WMI script to access.
MAC address is on Win32_NetworkAdapter
For hd serial have a look here:
http://www.codeproject.com/KB/cs/har..._serialno.aspx
Re: How uniquie is the cpu id ?
Many companies now provide Hardware Locks (also called dongle). These are small devices that fit into user's PC via USB or parallel port. Use them instead of CPU ID etc. Though it would add slightly to the cost of your software, but your customers won't have reasons for asking for a duplicate license due to system upgrade, windows reinstall etc. etc.
Re: How uniquie is the cpu id ?
great reply pradeep but atm im just starting out i've redeveloped the whole registration process to use some 'special' encryption ... i can restore all the required data from one code and a separate app on the pc and as long as the software is installed on the same pc the codes will be the same install it on another it wont work unless they contact me via email .... going to setup an automated service based on customer id and if their support contract is valid ... it will give them up to 10 keys anymore and they'll need to contact me so i can investigate the reason they used 10 keys ;)
code works brilliantly and a word of advice attempting anything similar avoid using the system.management class its very slow and unreliable ... capture machine information using something consistant and reliable ;)
Re: How uniquie is the cpu id ?
Quote:
Originally Posted by
illskills
great reply pradeep but atm im just starting out i've redeveloped the whole registration process to use some 'special' encryption ... i can restore all the required data from one code and a separate app on the pc and as long as the software is installed on the same pc the codes will be the same install it on another it wont work unless they contact me via email .... going to setup an automated service based on customer id and if their support contract is valid ... it will give them up to 10 keys anymore and they'll need to contact me so i can investigate the reason they used 10 keys ;)
They will always have n number of alibi to get licenses from you for free. And most often than not, you will have to provide them even if you know that they are lying. e.g. My system crashed, I changed my harddisk, I upgraded to new system etc. etc.
With the Hardware Lock, one license can be locked to one person independent of their system. If they want to use it on their home pc they plug that dongle to their home pc. Later if they want to use it on their laptops, they remove from home PC and plug it onto the laptop etc. At one time they will be able to run your software on only one system. And I think this is correct, since they are authorized for one license independent of system they want to run on.
Re: resolved - How uniquie is the cpu id ?
im going to google this ... as it could come in handy in future.
but is far to expensive for me to roll out atm.
im just starting out, used to work for a software house, but am going it alone now.
Re: How uniquie is the cpu id ?
Quote:
Originally Posted by
Pradeep1210
With the Hardware Lock, one license can be locked to one person independent of their system. If they want to use it on their home pc they plug that dongle to their home pc. Later if they want to use it on their laptops, they remove from home PC and plug it onto the laptop etc. At one time they will be able to run your software on only one system. And I think this is correct, since they are authorized for one license independent of system they want to run on.
Just don't use any type of flash media (flash drives, any of the cards used in phones/pda's/digital camera's) as those can be cloned extremely easily. If you deploy your app with a flash drive, the end user can clone it to as many other flash drives as they want (and flash drives are extremely cheap to buy, especially in bulk).
Re: How uniquie is the cpu id ?
Quote:
Originally Posted by
JuggaloBrotha
Just don't use any type of flash media (flash drives, any of the cards used in phones/pda's/digital camera's) as those can be cloned extremely easily. If you deploy your app with a flash drive, the end user can clone it to as many other flash drives as they want (and flash drives are extremely cheap to buy, especially in bulk).
If you implement it in the right way, it's not so easy to get through it. When implemented in the correct way, your program will work with the original device and would fail with the cloned device.
However I agree that it is very much possible to make exact clones of the device and/or bypass it completely. But that's a different story altogether. All encryption can be broken or hacked and this is no exception. But at least it addresses your problem of making program independent of the PC, which a software solution alone won't be able to provide.
Re: resolved - How uniquie is the cpu id ?
Dude, just use MAC and-or HD.
What is better? To have to user plug and unplug a device that may taking space and place on usb's or to have him do nothing.
In the worst scenario he could unscrew the network and hd and move them to another computer but he still would need the exact same hd to use the application. If the hd is broken then he can request another key from you.
Of course everything can be cracked-broken but it's much easier to copy a flash in another flash than to copy hd and mac.This for media compare for copy devices.
On the side of cracking the program then it does not make any difference what u use because the exe or registry or dll is altered so the program will play in any media.So in this case, again, is more useful to have the user plug nothing in the usb.
Also lastly you can forget or lose the usb(i've lost 5 this year) or accidentally damage it, especially if it's in a laptop.
I'm also not sure if the flash drive have a unique id or just a unique id of the whole type of the flash. P.E. all sony usb 8gb rxxx12 flashes have an id of 111xxxx or every sony usb 8gb rxxx12 flash has a different id.
Re: resolved - How uniquie is the cpu id ?
Be careful with MAC address though. I have multiple network cards in my PC (wired, wireless, bluetooth, and 2 VMWare) and I have had issues with software because I installed it when I was on a wired network and I tried to run it when I was in a wireless network.
Re: How uniquie is the cpu id ?
Quote:
Originally Posted by
formlesstree4
I believe each CPU has a different ID, but I could be mistaken.
It is not. If you buy a CPU from a batch of stock from the same supplier they will have the same ID. I know this as we batch build hardware and i have tested this copy protection method out on them.