[Python-Dev] Hashing proposal: change only string-only dicts

Victor Stinner victor.stinner at haypocalc.com
Tue Jan 17 23:23:48 CET 2012


> There is a simpler solution:
>
> bucket_index = (hash(str) ^ secret) & DICT_MASK.

Oops, hash^secret doesn't add any security.

Victor


More information about the Python-Dev mailing list