在iOS下,有谁知道如何为可执行文件生成UUID以及其中可能编码哪些信息?
在 iOS 上编译的应用程序会在编译时分配标识符 (UUID)。这些标识符可以由 dwarfdump 工具显示。有谁知道 UUID 是如何生成的以及其中可能编码哪些信息?
Applications compiled on iOS are assigned identifiers (UUID's) at compile time. These identifiers may be revealed by the dwarfdump tool. Does anyone know how UUID's are generated and what information may be encoded within them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几乎可以肯定它们是由 CoreFoundation UUID 机制生成的,该机制根据以太网卡的 MAC 地址、时间戳和其他一些杂项信息创建它们。您可以通过运行
uuidgen
生成您自己的 UUID。至于其中编码的信息,实际上只是您的 MAC 地址的片段。几乎唯一的相关性是,理论上有人可以确定在同一台计算机上生成多个 UUID,但我不知道这是否实际上可能。Almost certainly they're generated by the CoreFoundation UUID machinery, which creates them based off of the MAC address of your ethernet card, the timestamp, and some other miscellaneous information. You can generate your own UUIDs by running
uuidgen
. As for the information encoded in them, all that's really there is fragments of your MAC address. Pretty much the only relevance this has is it may be theoretically possible for someone to determine that multiple UUIDs were generated on the same machine, but I don't know if that's actually possible.