A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115584.html below:

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

[Python-Dev] Hashing proposal: change only string-only dicts [Python-Dev] Hashing proposal: change only string-only dictsVictor 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4