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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to