Re: Looking for Cocoa diff and hash objects/ library
Re: Looking for Cocoa diff and hash objects/ library
- Subject: Re: Looking for Cocoa diff and hash objects/ library
- From: Chris Ridd <email@hidden>
- Date: Tue, 25 May 2004 21:54:02 +0100
On 25/5/04 8:20 pm, Brad O'Hearne <email@hidden> wrote:
>
Hey all,
>
>
Could someone tell me if Cocoa (or any Apple specific API) contains
>
objects / libraries for doing two unrelated things:
>
>
1. Binary file diff.
No idea. You've got the BSD cmp program installed which you could try using.
Obviously the source to *BSD's cmp and GNU's cmp is available.
>
2. Hashing (preferably SHA-2, but SHA-1 and MD5 would be nice too).
Apple provide 2 libraries which include hashing functions -
Security.framework wraps CDSA, which is a pretty comprehensive library; and
OpenSSL, which is quite popular.
I'd tend towards using Security.framework if you can get your brain around
it, as apps linked against tend to survive OS upgrades. Apps linked against
OpenSSL do not. OTOH I can't see a SHA-2 implementation in
Security.framework, unless it has another name.
Cheers,
Chris
_______________________________________________
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.