This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Giovanni.Bajo
Recipients Arfrever, Giovanni.Bajo, PaulMcMillan, Vlado.Boza, alex, arigo, benjamin.peterson, camara, christian.heimes, dmalcolm, koniiiik, lemburg, serhiy.storchaka, vstinner
Date 2012-11-06.16:29:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352219359.47.0.0541828795731.issue14621@psf.upfronthosting.co.za>
In-reply-to
Content
Christian, there are good semi-crypto hash functions that don't leak as bad as Python's own modified FNV hash, without going all the way to HMAC.

SipHash has very good collision resistance and doesn't leak anything:
https://www.131002.net/siphash/
(notice: they distribute a python program to recover python's seed)

It's obviously slower than Python's FNV, but it's hard to beat a sum+multiplication per character.
History
Date User Action Args
2012-11-06 16:29:19Giovanni.Bajosetrecipients: + Giovanni.Bajo, lemburg, arigo, vstinner, christian.heimes, benjamin.peterson, Arfrever, alex, dmalcolm, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, camara
2012-11-06 16:29:19Giovanni.Bajosetmessageid: <1352219359.47.0.0541828795731.issue14621@psf.upfronthosting.co.za>
2012-11-06 16:29:19Giovanni.Bajolinkissue14621 messages
2012-11-06 16:29:18Giovanni.Bajocreate