• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFUUID question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFUUID question


  • Subject: Re: CFUUID question
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 28 Apr 2010 13:29:22 -0700


On Apr 28, 2010, at 1:15 PM, Philip Mobley wrote:

MD5 is more of what I am looking for, but in the UUID format to avoid the MD5 collisions. For example a new UUID based on something like [NSString stringWithFormat:@"%@%@%@", machineUUID, [game description], [player name]]. The resulting UUID could be generated at any time given the source key value, but the source key would not be exposed within the UUID.

Don't use MD5, it's known to have collision problems. SHA-1 is acceptable, SHA-256 is better. Sounds like what you want is to concatenate the hopefully-unique values (with delimiters between them to eliminate ambiguity) and use the CommonCrypto API to generate a digest.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CFUUID question (From: Philip Mobley <email@hidden>)
 >Re: CFUUID question (From: Douglas Davidson <email@hidden>)
 >Re: CFUUID question (From: Philip Mobley <email@hidden>)

  • Prev by Date: Re: Cocoa Newbie & MySQL
  • Next by Date: Re: NSKeyedArchiver and NSPoints
  • Previous by thread: Re: CFUUID question
  • Next by thread: Archiving NSBlockPredicate and NSPredicate date functions
  • Index(es):
    • Date
    • Thread