--- id: siphashc version: "2.8" license: ISC license_treatment: permissive maintenance: active --- # siphashc — Python module (in c) for siphash-2-4 License: permissive · Maintenance: active · Downloads: 131.8K/mo ## What it is and what it does siphashc is a Python C extension that implements SipHash-2-4, a fast and secure pseudorandom function designed for hashing short inputs. It wraps a C implementation based on the original SipHash specification, providing a simple interface to compute hash values from a key and message. The module has no runtime dependencies and is distributed as precompiled wheels for modern Python versions and common platforms, making installation straightforward on Linux, macOS, and Windows. The package is maintained by the Weblate project and is used in production localization workflows. It is suitable for applications that need a lightweight, collision-resistant hash function—such as hash tables, checksums, or authentication tags—where the speed and security properties of SipHash-2-4 are appropriate. The ISC license permits unrestricted use in open-source and proprietary projects. Use it for: - Hash table implementation where collision resistance and speed are both important. - Generating message authentication codes or checksums for data integrity verification. - Fingerprinting or deduplication of short strings in localization or content management systems. - Cryptographic applications requiring a PRF with known security properties and performance. - Replacing weak hash functions in legacy code where SipHash-2-4's guarantees are needed. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. siphashc provides a Python binding to the SipHash-2-4 cryptographic hash function, implemented as a C extension for performance. Yes, if you need SipHash-2-4 specifically and want a C-based implementation for performance. The package is actively maintained, has no known vulnerabilities, supports current Python versions, and carries a permissive license. Install friction is moderate due to the compiled extension, but prebuilt wheels are available for standard platforms. If you are unsure whether SipHash-2-4 is the right choice for your use case, verify its security and performance properties against your requirements first. ## Install pip install siphashc uv add siphashc poetry add siphashc ## Installing siphashc Before you install: Medium install friction due to compiled C extension wheels; however, prebuilt wheels are available for common platforms (macOS x86_64 and ARM, Linux x86_64 and aarch64, Windows x86_64) and Python versions 3.10–3.15. Last release was 6 days ago and repository is actively maintained. License in practice: Released under the ISC license, a permissive open-source license that allows commercial and private use with minimal restrictions, making it safe for most projects. Quickstart: pip install siphashc from siphashc import siphash result = siphash("sixteencharstrng", "i need a hash of this") print(result) # 10796923698683394048 Requires Python 3.10 or later; a C compiler is needed only if building from source rather than using prebuilt wheels. Verify before relying: - Whether SipHash-2-4 is suitable for your specific security or performance requirements compared to other hash functions. - Performance characteristics and benchmarks against pure-Python or alternative hash implementations. - Whether the 20-star repository and small user base indicate sufficient community scrutiny for cryptographic use. ## Package facts - License: ISC (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 131.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags siphash hash function, cryptographic hash python, fast hash algorithm, siphash-2-4 implementation, c extension hash, python hash library, collision-resistant hashing, cryptography, hashing, c-extension [View on SkillFed](https://skillfed.io/packages/siphashc) · [View on PyPI](https://pypi.org/project/siphashc/)