求助! win10 系统的计算机如何获得唯一的机器码? Java 实现。

2018-11-23 19:21:55 +08:00
 Luckyray

MAC 地址可篡改而且离线环境没网卡不可用。
wmic cpu get ProcessorId 获取到的 cpuid 经过测试可能只是代表批次或者型号,两台一样配置的笔记本 id 一样。
主板 id 不是所有主板都提供。

还有什么可用的方案??

4421 次点击
所在节点    问与答
11 条回复
newmind
2018-11-23 19:30:32 +08:00
没有绝对的唯一
d5
2018-11-23 19:32:24 +08:00
多获取几个硬件信息做哈希呗
minami
2018-11-23 19:34:17 +08:00
MachineGuid ?
dream7758522
2018-11-23 19:44:07 +08:00
硬盘 id,实在不行上狗呗
rebackhua
2018-11-23 19:45:41 +08:00
靠直接获取硬件 id,应该没有绝对的唯一。
honeycomb
2018-11-23 19:45:59 +08:00
参考一下 intelliJ 的那些 IDE 做法?
jpmorn
2018-11-23 20:19:31 +08:00
wmic csproduct get UUID


wmic DISKDRIVE get SerialNumber

With our licensing tool we consider the following components

MAC Address
CPU (Not the serial number, but the actual CPU profile like stepping and model)
System Drive Serial Number (Not Volume Label)
Memory
CD-ROM model & vendor
Video Card model & vendor
IDE Controller
SCSI Controller
However, rather than just hashing the components and creating a pass/fail system, we create a comparable fingerprint that can be used to determine how different two machine profiles are. If the difference rating is above a specified tolerance then ask the user to activate again.

We've found over the last 8 years in use with hundreds of thousands of end-user installs that this combination works well to provide a reliably unique machine id - even for virtual machines and cloned OS installs.
annoy1309
2018-11-23 20:22:59 +08:00
唯一的机器码,会导致用户更改任何硬件都导致需要重新授权
anonymous256
2018-11-23 20:41:59 +08:00
这个网页提供了程序和 dll,但是没有提供源码
http://www.soft.tahionic.com/download-hdd_id/index.html
anonymous256
2018-11-23 20:45:19 +08:00
mmdsun
2018-11-23 20:48:14 +08:00
微软 msdn 文档

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/510913

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX