V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
lldong
V2EX  ›  iDev

UDID是可以计算出来的?

  •  
  •   lldong ·
    lldong · 2012-03-26 21:28:24 +08:00 · 6506 次点击
    这是一个创建于 4415 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://iphonedevwiki.net/index.php/Lockdownd

    UDID = SHA1(SerialNumber + ECID + LOWERCASE(WiFiAddress) + LOWERCASE(BluetoothAddress))
    21 条回复    1970-01-01 08:00:00 +08:00
    r3b
        1
    r3b  
       2012-03-26 21:37:39 +08:00
    这不就是取人贞操于千里之外吗
    lossdante
        2
    lossdante  
       2012-03-26 21:46:04 +08:00
    围观ls评论。。。
    likai
        3
    likai  
       2012-03-26 21:59:25 +08:00
    这个东西有啥用?
    yelusiku
        4
    yelusiku  
       2012-03-26 22:24:47 +08:00
    每台设备的唯一标识,还是挺有用的。
    sobigfish
        5
    sobigfish  
       2012-03-27 00:23:50 +08:00 via iPad
    呃,搭车问问取真实udid而不是udidfaker的假id的api能过app store审核么
    Semidio
        6
    Semidio  
       2012-03-27 00:35:19 +08:00
    @sobigfish 现在不是都开始禁止这么这么做了么
    sobigfish
        7
    sobigfish  
       2012-03-27 00:44:59 +08:00 via iPad
    @Semidio 貌似之前很多软件、游戏都把udid当作用户名来标识用户,udid欺骗的话不乱套了,比如magplus的杂志订阅 也就是说appstore不能用那个api咯?都不知道还存在不
    GordianZ
        8
    GordianZ  
    MOD
       2012-03-27 01:47:23 +08:00
    有 API 可以取 IMEI 和 MAC 地址么?
    不能的话有公式也没用啊。
    GordianZ
        10
    GordianZ  
    MOD
       2012-03-27 11:27:22 +08:00
    @lex 谢谢,之前在上课就偷懒没 Google =]
    est
        11
    est  
       2012-03-27 11:48:02 +08:00
    @lex @GordianZ 这种也是侵犯用户隐私,跟用udid一样的,会被apple下架的。

    其实直接获取mac地址危害更大,来个arp什么就可以传播蠕虫。
    lex
        12
    lex  
       2012-03-27 11:51:32 +08:00
    @est 恩,我可不敢用。
    刚看到这个,用 [[NSProcessInfo processInfo] globallyUniqueString] 的,好像还算靠谱:
    https://github.com/ylechelle/OpenUDID
    sobigfish
        13
    sobigfish  
       2012-03-27 16:12:26 +08:00
    @lex 感谢,openudid貌似是很好的方法

    globallyUniqueString
    Discussion
    This method generates a new string each time it is invoked, so it also uses a counter to guarantee that strings created from the same process are unique.


    这个,有time stamp,估计不能有效的辨识用户吧。
    lex
        14
    lex  
       2012-03-27 18:09:17 +08:00
    @sobigfish 是的。要记在 NSUserDefaults 里,确保它在删除程序前不变。
    sobigfish
        15
    sobigfish  
       2012-03-27 18:15:09 +08:00
    @lex 就是怕删除重装之类的。。hash(imei+salt)能通过apple的审核么
    lldong
        16
    lldong  
    OP
       2012-03-27 20:39:20 +08:00
    @sobigfish 如果怕重装的话可以记录到keychain里面
    sobigfish
        17
    sobigfish  
       2012-03-27 21:12:13 +08:00
    @lldong 感谢,见过国内的应用把用户名和密码不加密放在目录里。。原来ios的可以直接在keychain存取啊
    lldong
        18
    lldong  
    OP
       2012-03-27 21:36:28 +08:00
    @sobigfish 存在keychain里还有一个好处,就是是同个开发者的不同应用可以都可以访问
    shinyzhu
        19
    shinyzhu  
       2012-03-28 10:26:42 +08:00
    早上读到一个SecureUDID貌似不错。准备在以后项目中用这个。
    https://github.com/crashlytics/secureudid
    sobigfish
        20
    sobigfish  
       2012-03-28 11:10:02 +08:00
    @shinyzhu 里面的issue #5也提的很在理。https://github.com/crashlytics/secureudid/issues/5

    假设一个收费app,一个公司只买一份然后部署到n多设备上怎么算?
    qq286735628
        21
    qq286735628  
       2012-03-28 11:24:11 +08:00
    这个是苹果给的公式?他如果变一下公式,不就没用了~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5410 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 05:58 · PVG 13:58 · LAX 22:58 · JFK 01:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.