Re: Checksums and best way to get'em
Re: Checksums and best way to get'em
- Subject: Re: Checksums and best way to get'em
- From: "A.M." <email@hidden>
- Date: Tue, 8 Jun 2004 15:54:51 +0200
One other way of doing this is to use the MD5 or SHA-1 functions from
OpenSSL's libcrypto library. You can then read in the file using
read() or fread(), pass each byte through the "update" function, and
get the final digest from the "final" function. You can find out more
by running an apropos search for "md5" and "sha" on your computer if
you installed the BSD SDK when you installed Xcode.
This can be easily done using the SSCrypto class from:
http://septicus.com/products/opensource/
It is a very easy-to-use wrapper around OpenSSL and thus supports all
the digest and encryption/decryption methods that OpenSSL does. Digest
support was added recently. It is also a good example of how to use
libcrypto.
_______________________________________________
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.