Uniquely identify PC based on software/hardware

后端 未结 7 1740
甜味超标
甜味超标 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 19:56

    For a pretty brain dead test I am using the ProductID code of the OS and the computer name - both extracted from the registry. Not really secure, but its all pretend security anyway.

    edit

    To answer John's question about what keys I am reading:

    SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductID

    SYSTEM\CurrentControlset\Control\ComputerName\ComputerName\ComputerName

提交回复
热议问题