Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6622085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:21:36+00:00 2026-05-25T21:21:36+00:00

I have made a web service that gets an integer as a unique identifier

  • 0

I have made a web service that gets an integer as a unique identifier for a Phone. Later, i realised that an iPhone UID is an NSstring in that format: 5DE31FA12-XXXXX-XXXXX-XXXXXXX. So i would like to convert this value to an integer.

Here is the way i get the UID in a NSString format.

CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
CFRelease(theUUID);
NSString *theUID = (NSString *)string;

How can i convert NSString *theUID into an integer value, so as to send it to the webservice?

EDIT: As CocoaFu correctly mentioned , it is impossible to fit that value in an int. Could I somehow convert it to an NSString with a format like “ddddddddddddddddddddddddddd” (where d = 0-9) so as to hash it and then send it? It is impossible to change the webservice now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:21:37+00:00Added an answer on May 25, 2026 at 9:21 pm

    The largest integer is 8 bytes or 64 bits. The UUID you show has 26 hex characters which is 104 bits. It just won’t fit in an integer. Use the string.

    CFUUIDCreate returns a string with 32 hex characters, that is 128 bits or 16 bytes. Ignore the ‘-‘ characters, they are just for human readability. Here is an example from
    CFUUIDCreate: BDFC3FE6-3A5E-48C0-B18D-E42B8E275428

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an app that gets an array of addresses from a web
I have an XML web service that javascript calls are made using jQuery. This
I have made a REST Web service, that works with Visual Studios WCF Test
Background I have made a Web Service in Visual Studio, and I'm trying to
I have a web service (WCF or ASMX doesn't matter)... I have made a
I have made a web application that uses master page for Login & Logout
I have made a build system for my web application that's rewriting all resource
I have a web service that exposes operations to and from a database. I'm
I have a WCF web service that exposes several business methods. I also have
I have an Axis (1.4) web service (running on Tomcat 6.0.20) that is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.