Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is an iPhone Device ID 40 characters?

UUIDs are usually 36 characters.

like image 955
Paul Prescod Avatar asked Nov 29 '22 12:11

Paul Prescod


2 Answers

Because UDID ≠ UUID. The iPhone Unique Device Identifier (UDID) is a hash of several different hardware identifiers pulled from the chips on the phone. It's not a software-generated identifier for a software object.

It's 160 bits, not 128 bits, so it takes 40 hex characters to represent, not 32 + 4 hyphens.

like image 117
cdespinosa Avatar answered Dec 05 '22 23:12

cdespinosa


It's not a UUID, it's a UDID. A UUID is generated on the fly to be unique, and then stored. However, the UDID is calculated based off of the hardware on the phone, so it's never generated. The 40 character length might imply it's a SHA1 hash of a few pieces of hardware info, or it could just be a coincidence.

like image 27
Lily Ballard Avatar answered Dec 06 '22 00:12

Lily Ballard