V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Luckyray
V2EX  ›  问与答

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

  •  
  •   Luckyray · 2018-11-23 19:21:55 +08:00 · 4394 次点击
    这是一个创建于 1951 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    还有什么可用的方案??

    11 条回复    2018-11-23 20:48:14 +08:00
    newmind
        1
    newmind  
       2018-11-23 19:30:32 +08:00 via Android
    没有绝对的唯一
    d5
        2
    d5  
       2018-11-23 19:32:24 +08:00 via iPhone
    多获取几个硬件信息做哈希呗
    minami
        3
    minami  
       2018-11-23 19:34:17 +08:00
    MachineGuid ?
    dream7758522
        4
    dream7758522  
       2018-11-23 19:44:07 +08:00 via Android
    硬盘 id,实在不行上狗呗
    rebackhua
        5
    rebackhua  
       2018-11-23 19:45:41 +08:00 via Android
    靠直接获取硬件 id,应该没有绝对的唯一。
    honeycomb
        6
    honeycomb  
       2018-11-23 19:45:59 +08:00 via Android
    参考一下 intelliJ 的那些 IDE 做法?
    jpmorn
        7
    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
        8
    annoy1309  
       2018-11-23 20:22:59 +08:00
    唯一的机器码,会导致用户更改任何硬件都导致需要重新授权
    anonymous256
        9
    anonymous256  
       2018-11-23 20:41:59 +08:00 via Android
    这个网页提供了程序和 dll,但是没有提供源码
    http://www.soft.tahionic.com/download-hdd_id/index.html
    anonymous256
        10
    anonymous256  
       2018-11-23 20:45:19 +08:00 via Android
    mmdsun
        11
    mmdsun  
       2018-11-23 20:48:14 +08:00 via Android
    微软 msdn 文档
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3829 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:33 · PVG 18:33 · LAX 03:33 · JFK 06:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.