V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Viztor
V2EX  ›  问与答

OS X 有类似唯一识别码之类东西么?

  •  
  •   Viztor · May 10, 2014 · 3246 views
    This topic created in 4370 days ago, the information mentioned may be changed or developed.
    用于在代码里确认一个客户机的唯一性。
    如果是虚拟机呢?
    如果是Hackintosh呢?
    4 replies    2014-05-10 23:51:14 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       May 10, 2014
    基本上可以用 MAC 地址。

    网卡的 MAC 地址。

    如果不考虑 Hackintosh 的话,那就用蓝牙设备的 MAC 地址。
    hewigovens
        2
    hewigovens  
       May 10, 2014
    建议使用Hardware UUID, About this Mac -> More Info... -> System Report
    hewigovens
        3
    hewigovens  
       May 10, 2014
    补个链接 https://developer.apple.com/library/mac/technotes/tn1103/_index.html
    @Livid 里面有提到 Caveats for using the primary MAC address
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3525 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 11:44 · PVG 19:44 · LAX 04:44 · JFK 07:44
    ♥ Do have faith in what you're doing.