• 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: MD5 check sum of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MD5 check sum of a file


  • Subject: Re: MD5 check sum of a file
  • From: Nicko van Someren <email@hidden>
  • Date: Wed, 13 Feb 2008 11:25:13 +0000

On 13 Feb 2008, at 10:49, <email@hidden> wrote:
I want to find out the md5 check sum of a file while giving the path of
the file.
I don't want to use NSTask manager and shell command .Hope some one can
help me to find a solution in this regard.


Is there any API which helps me to find the md5 check sum.?

"man -k md5" might help...


#include <openssl/md5.h>
unsigned char digest[MD5_DIGEST_LENGTH]
NSError *e;
NSData *d = [NSData dataWithContentsOfFile: filePath options: NSMappedRead error: &e];
if (d == nil)
{ ... barf about e ... }
else
MD5([d bytes], [d length], digest);



_______________________________________________

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: 
 >MD5 check sum of a file (From: <email@hidden>)

  • Prev by Date: Re: NSURLConnection details
  • Next by Date: Do i need custom views created programatically
  • Previous by thread: MD5 check sum of a file
  • Next by thread: Re: MD5 check sum of a file
  • Index(es):
    • Date
    • Thread