No project description provided
Project description
This library provides a deterministic hash for Python objects. hash will give different results each process invocation, in order to thwart denial-of-service attacks based on intentionally triggering hash collisions (see -R in Python’s CLI options). Even setting PYTHONHASHSEED is not enough, because the hash can still use non-deterministic data such as pointer-addresses. By default, this package uses the xxhash algorithm, which is the fastest non-cryptographic hash I know of.
>>> from charmonium.determ_hash import determ_hash >>> determ_hash(b"hello world") 141361478936837800319111455324245712876
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for charmonium.determ_hash-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | afccaf196e41edccc77cd7c9c93e28ce3d0859f95459267befc1d4971f4a8ee4 |
|
MD5 | 110cc0f0bf494027898a9ff38fecf2d8 |
|
BLAKE2b-256 | 89c249b46ee3c76d0c7e79753897539a21b5b12c3c503b035fa7c666229d041a |
Close
Hashes for charmonium.determ_hash-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1aa529257b398e6a4ab12b68a4b109d6612c5aeaf780ae680e60a17398ee8e1 |
|
MD5 | 8885b0ee415b947dd2ff9ada69376b0a |
|
BLAKE2b-256 | 08c45185ab01ab73821a654c5835224a6e3c2689ee5a6ad8a0636e514813ba5b |