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: Brian Bergstrand <email@hidden>
- Date: Tue, 25 May 2004 15:28:41 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On May 25, 2004, at 2:20 PM, Brad O'Hearne 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.
hexdump file1 > file1.txt
hexdump file2 > file2.txt
diff file1.txt file2.txt
Not Cocoa, but a quick way to do this. I probably wouldn't ship with it
though.
>
2. Hashing (preferably SHA-2, but SHA-1 and MD5 would be nice too).
>
#import <openssl/sha.h>
#import <openssl/md5.h>
SHA1(...);
MD5(...);
Link with -lcrypto
HTH.
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
Q: How many NT Admins does it take to change a light bulb? A: Two: one
to check for patches and updates and one to screw it in.
As of 03:23:48 PM, iTunes is playing "Porch" from "Ten" by "Pearl Jam"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQLOebnnR2Fu2x7aiEQJMDACgu2bgSkF7COEUxPdvscDhgvP6SIwAn3f0
bH85Bf0Rz1CfUCv4pP4REVNa
=3NRk
-----END PGP SIGNATURE-----
_______________________________________________
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.