If you are concerned with security, use SHA-512 (member of SHA-2 family, faster than SHA-1 on 64-bit systems) or Keccak (SHA-3, more secure) will be the best way as they are both proved secure (while SHA-1 is proved INSECURE) and if you want efficiency the XOR thing should suite well as it can be implemented with a few instructions.
On Dec 2, 2013, at 22:44, Graham Cox <graham....@bigpond.com> wrote: > > On 2 Dec 2013, at 3:36 pm, ChanMaxthon <xcvi...@me.com> wrote: > >> How about this: treat the data as an array of 64-bit integers (zero-padded) >> and XOR them together? That will be really fast and you will be able to >> asm-optimize it. > > > There are plenty of fast hash algorithms that are proven to work. > > As I learned early on, inventing your own without a lot of thought rarely > pans out well. The issue now isn’t how to hash, it’s whether hashing is > considered a safe enough approach for the use-case. > > —Graham > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com