Luckyray
V2EX  ›  问与答

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

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