Skip to main content

python-csiphash24

SipHash-2-4 implementation, CFFI-wrapped for Python.

It just works. If you have Python ≥ 3.6.

Inspired by https://github.com/majek/csiphash and https://github.com/zacharyvoase/python-csiphash.

How to install

$ pip install csiphash24

How to use

>>> from binascii import hexlify
>>> from csiphash24 import siphash24
>>> hexlify(siphash24(b'0123456789abcdef', b'hello'))
b'95a3a242a9dd85d1'

Is it fast ?

On my late-2016 MacBook Pro, hashing a 256-bytes message takes less than a microsecond on average (about 780 nanoseconds to be precise).

Metadata

Release files for csiphash24 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csiphash24 1.0.4
File Size Uploaded Provenance Actions
csiphash24-1.0.4.tar.gz 2.7 kB Without provenance Details for csiphash24-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for csiphash24 1.0.4
File Interpreter ABI Platform Actions
csiphash24-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 Details for csiphash24-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl

Total release size: 7.1 kB

Release files / csiphash24-1.0.4.tar.gz

Download URL csiphash24-1.0.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7518b4b85cba47eb6fe839c218ad5526dbd6b419fcc9d4e2194abf8112af897b
BLAKE2b-256 checksum
How to use checksums
e98357219f4ddb1b05a37ddefdfc2cc8485228d2192e538212fb98c073ff900b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / csiphash24-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL csiphash24-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl
Size 4.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
55c3a3844a6e473b5c69486feb9ce5b4adba812d7e555632ab9d0d7b19a77f66
BLAKE2b-256 checksum
How to use checksums
6440f655fdb25338d0134417b49fe7887d525cd62268bc2e7dc7ea62e51bba3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for csiphash24 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page