How to uniquely determine MD5-sum of a dict?
How to uniquely determine MD5-sum of a dict?
- Subject: How to uniquely determine MD5-sum of a dict?
- From: Arthur C. <email@hidden>
- Date: Tue, 16 Sep 2008 20:40:20 +0200
- Importance: Normal
I have an NSDictionary that has to be written to disk, distributed and read in again.
I would like to add an MD5 sum to the dictionary to make sure it has not been modified/corrupted on the way. That can be done by making NSData using NSArchiver and then passing it to MD5() from <openssl/md5.h>.
But, the order in which keys/values are stored in the dict is not fixed. I would like to know if there is a simple way to get a unique (reproducable) MD5-sum.
Thanks in advance,
Arthur
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________
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