Registry / auth-security / siphashc

siphashc

JSON →
library2.7pypypi✓ verified 84d ago

A C-based Python module implementing SipHash-2-4, a fast cryptographic hash function designed for hash tables and message authentication. Current version is 2.7, requiring Python >=3.10. Releases are intermittent.

pip install siphashc
INSTALL
IMPORT
SIG · SIPHASHC
S
siphashc
auth-securitypythonv2.7
Install
1.6s avg
Import
—
Disk
16MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
build_error
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

siphash
✓ from siphashc import siphash
✗ import siphashc; siphashc.siphash(data)

Hash a bytes object using SipHash-2-4.

import siphashc data = b'hello world' hashed = siphashc.siphash(data) print(hashed) # e.g. 0x9f8d5a4b3c2e1f0a
Debug
Known issues
gotchaThe function only accepts bytes objects; strings must be encoded first.
fix
Call data.encode('utf-8') before hashing.
affects: all
gotchasiphashc returns a 64-bit unsigned integer, not a hex string.
fix
Convert to hex with hex(hashed) if needed.
affects: all
deprecatedPython 3.9 and below are no longer supported as of version 2.7.
fix
Upgrade to Python >=3.10.
affects: >=2.7
Upgrade
Version history
2.7latest on PyPI · released Nov 3, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
28
OpenAI (training)
1
Resources
siphashc — pip install siphashc · libregistry