|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
b) Is there any wrapper / easy-to-use class out there to compute md5 values of an NSString (resp. NSData) object?
Why not use OpenSSL? If you do you need to add libcrypto (/usr/lib/libcrypto.dylib) to your project and include <openssl/evp.h>.</snip>
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.
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.
|>md5 for Cocoa / Linker problems (From: Michael Becker <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.