Search code examples
iosudid

iOS: UDID is upper case


I know about iOS device UDID and that are case-sensitive. But I have a query, my client sent me all upper case in UDID characters. I have never seen any upper case letters in UDID's. I don't find any document that says UDID can have upper case letters consists. I need to create a right build to them. Could someone advise, what should I ask my client now? I can't say them, UDID is incorrect. Can I ask them to make sure the case-sensitive and send me back? Also, Can UDID have upper and lower case combination in letters?

Thank you!


Solution

  • You can just convert it back to lowercase safely.

    UDIDs are the output of a SHA1 function, and is represented as is typical as a string of hexadecimal characters. You don't need to worry about "a" meaning something different than "A", it's just different formatting for the same values. Just change the capitalization to the format you desire (lowercase, in this case), and not worry about it, unless you have other reason to believe the client sent you the wrong thing (wrong length, and characters other than 0-9, a-f/A-F would both warrant a raised eyebrow).