Luckyray
V2EX  ›  问与答

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

  •  
  •   Luckyray · Nov 23, 2018 · 5020 views
    This topic created in 2733 days ago, the information mentioned may be changed or developed.

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

    还有什么可用的方案??

    11 replies    2018-11-23 20:48:14 +08:00
    newmind
        1
    newmind  
       Nov 23, 2018 via Android
    没有绝对的唯一
    d5
        2
    d5  
       Nov 23, 2018 via iPhone
    多获取几个硬件信息做哈希呗
    minami
        3
    minami  
       Nov 23, 2018
    MachineGuid ?
    dream7758522
        4
    dream7758522  
       Nov 23, 2018 via Android
    硬盘 id,实在不行上狗呗
    rebackhua
        5
    rebackhua  
       Nov 23, 2018 via Android
    靠直接获取硬件 id,应该没有绝对的唯一。
    honeycomb
        6
    honeycomb  
       Nov 23, 2018 via Android
    参考一下 intelliJ 的那些 IDE 做法?
    jpmorn
        7
    jpmorn  
       Nov 23, 2018
    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  
       Nov 23, 2018
    唯一的机器码,会导致用户更改任何硬件都导致需要重新授权
    anonymous256
        9
    anonymous256  
       Nov 23, 2018 via Android
    这个网页提供了程序和 dll,但是没有提供源码
    http://www.soft.tahionic.com/download-hdd_id/index.html
    anonymous256
        10
    anonymous256  
       Nov 23, 2018 via Android
    mmdsun
        11
    mmdsun  
       Nov 23, 2018 via Android
    微软 msdn 文档
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 13:39 · PVG 21:39 · LAX 06:39 · JFK 09:39
    ♥ Do have faith in what you're doing.