Uniquely identify PC based on software/hardware

后端 未结 7 1746
甜味超标
甜味超标 2020-12-16 19:38

For a requirement to generate per-PC license keys, I need some code which will return a stable and (near) unique key on any PC. It doesn\'t have to be guaranteed un

7条回答
  •  执念已碎
    2020-12-16 20:11

    I would just go with the MAC address method; when the wireless / LAN cards are turned off they still show up in Network Connections. You should therefore still be able to get the MAC.

    Consider this: Any time you'd be able to contact your webserver or whatever you're cataloging these IDs with, the user is going to have to have some form of network card available.

    Oh, and you might be able to use CPU serial number of the customer's computer supports it.

提交回复
热议问题