On 20 Nov 08, at 14:12, Sebastian Pape wrote:
Hi, I'm trying to get a MD5 Checksum of a file. This is my code:
[...]
CC_MD5(cStr, strlen(cStr), result);
Does your file contain any null bytes? If so, strlen() will return the wrong length. (It'll just return the length of everything up to the first null byte.) Use [NSData length] instead.
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
