• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checksums and best way to get'em
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Checksums and best way to get'em (From: April Gendill <email@hidden>)
 >Re: Checksums and best way to get'em (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Best Practice for implementing NSUndoManager?
  • Next by Date: Re: How to quit
  • Previous by thread: Re: Checksums and best way to get'em
  • Next by thread: Re: Checksums and best way to get'em
  • Index(es):
    • Date
    • Thread