Re: md5 for Cocoa / Linker problems
Re: md5 for Cocoa / Linker problems
- Subject: Re: md5 for Cocoa / Linker problems
- From: Malte Tancred <email@hidden>
- Date: Fri, 2 Jul 2004 14:55:10 +0200
On 2 jul 2004, at 03.08, Michael Becker wrote:
b) Is there any wrapper / easy-to-use class out there to compute md5
values of an NSString (resp. NSData) object?
I just sent this to the xcode list (partial answer)
<snip>
Why not use OpenSSL? If you do you need to add libcrypto
(/usr/lib/libcrypto.dylib) to your project and include
<openssl/evp.h>.
I started a project some time ago where I wrote an Objective-C wrapper
around the OpenSSL digest functions. Not finished, may contain
horrible bugs etc, but I made it available for download nevertheless.
http://oops.se/~malte/software/scrap/ObjcMessageDigestTest.tar.gz
As you can see, the code uses the OpenSSL EVP interface which seems to
be the way to go nowadays. The code only does md5 at the moment, but
adding SHA1 and others is as you can see very easy.
</snip>
Regards,
Malte
--
Malte Tancred
Computer Programmer
Oops AB,
http://oops.se/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.