|
| [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.
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.
| References: | |
| >md5 for Cocoa / Linker problems (From: Michael Becker <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.