• 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
MD5 Hash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MD5 Hash?


  • Subject: MD5 Hash?
  • From: Dave DeLong <email@hidden>
  • Date: Sat, 26 Mar 2005 23:52:47 -0700

Hi List,

I'm sure this question has come up before, but here goes:

I'm looking for a way to create an MD5 hash from two strings. I've searched around for stuff, and I've found claims that Cocoa doesn't have an MD5 function built in. I've found people telling me to import <openssl/md5.h>, great, but what do I do with it from there? I'm also confused because I found this line on a forum:

<x-tad-smaller> foo = [[[[NSData alloc] initWithContentsOfFile: @"my.data"] autorelease] md5];

</x-tad-smaller>
Which makes me think that perhaps Cocoa does have some MD5 code squirreled away somewhere??

Help!

Thanks a bunch!

Dave DeLong
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MD5 Hash?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: CFRunLoopRun
  • Next by Date: Re: how to build data parser
  • Previous by thread: Re: CFRunLoopRun
  • Next by thread: Re: MD5 Hash?
  • Index(es):
    • Date
    • Thread