Re: CFUUID question
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