Last Updated: February 25, 2016
·
5.428K
· snnd

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/