• 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
How to uniquely determine MD5-sum of a dict?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to uniquely determine MD5-sum of a dict?
      • From: "Michael Ash" <email@hidden>
    • Re: How to uniquely determine MD5-sum of a dict?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Control bar on top of the screen
  • Next by Date: Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
  • Previous by thread: Control bar on top of the screen
  • Next by thread: Re: How to uniquely determine MD5-sum of a dict?
  • Index(es):
    • Date
    • Thread