gcwpua
Last Updated: February 25, 2016
·
4.455K
· snnd
F9fe8837f93f781302bd0a68c5506d9d

Beware of [NSString hash]

Did you know, that [NSString hash] is not safe for generating unique hash values, when a string is larger than 96 characters in length? I had to learn the hard way. When in doubt use solid hash method like md5 od sha1. Detailed informations on that subject at my blog:

http://www.abakia.de/blog/2012/12/05/nsstring-hash-is-bad/

Say Thanks
Respond