本文介绍了有效的UDID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重复:

Duplicate: Validate iPhone device Ids?

有谁知道什么是有效的iPhone UDID?

Does anyone know what constitutes a valid iPhone UDID?

上下文:我正在处理一些会话代码对于与iPhone交互的服务器,并且将使用iPhone的UDID作为唯一标识符。但是,我似乎无法在有效的UDID范围内找到任何资源,而且我想确切地知道我可以从iPhone中得到什么。

Context: I am working on some session code for a server that interacts with iPhones, and was going to use the iPhone's UDID as a unique identifier. However, I can't seem to find any resources on the range of valid UDIDs, and I want to know exactly what I can expect coming from an iPhone.

澄清:我不是在问如何将iPhone UDID验证为合法的iPhone UDID,我试图弄清楚UDID的范围。例如,在编程语言中,有关于可以用来命名变量的内容的规范(以字母开头,包含字母和数字等)。我想要与UDID相同的规范。

Clarification: I'm not asking about how to validate an iPhone UDID as a legitimate iPhone UDID, I'm trying to figure out the range of UDIDs. For example, in programming languages there are specs on what you can use to name your variables (starts with a letter, contains letters and numbers, etc.). I want the same sort of spec for the UDID.

推荐答案

这是一个40个字符的十六进制字符串。没有规范或doc指定此字符串的布局。

It is a 40 character hex string. There is no spec or doc out there that specifies the layout to this string.

我不确定如何确定什么是有效,因为只有Apple知道哪个UDID是真的,哪些是假的。

I'm not really sure how you can determine what is 'valid' since only Apple knows which UDID are real and which are false.

我最好的猜测,鉴于我见过的各种UDID,它们的长度为40个字符,由字母数字字符组成。 (a-f0-9)

My best guess, given the various UDIDs that I've seen, they are 40 characters in length, consisting of alphanumeric characters. (a-f0-9)

这篇关于有效的UDID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 08:23