--- id: safe-pysha3 version: "1.0.5" license: PSFL (Keccak: CC0 1.0 Universal) license_treatment: permissive maintenance: aging --- # safe-pysha3 — SHA-3 (Keccak) for Python 3.9 - 3.13 License: permissive · Maintenance: aging · Downloads: 362.8K/mo ## What it is and what it does safe-pysha3 is a wrapper around the optimized Keccak Code Package that exposes SHA-3, SHAKE, and legacy Keccak hash functions to Python. It implements the official NIST standard (with delimiter suffix 0x06) and also provides the pre-finalization Keccak hashes for backward compatibility. The module provides constructors for hash objects with a PEP 247 compatible interface including sha3_224(), sha3_256(), sha3_384(), sha3_512(), shake_128(), shake_256(), and keccak variants. The package is a C extension compiled from optimized Keccak sources and is available as prebuilt wheels for Python 3.9–3.13 on Linux and musl platforms. It has no runtime dependencies and exposes methods like update(), digest(), and hexdigest(). The package is permissively licensed under PSFL and CC0 1.0 Universal, and has seen no reported security vulnerabilities. Use it for: - Computing SHA-3 hashes for cryptographic operations when legacy Keccak compatibility is needed. - Generating SHAKE variable-length digests for applications requiring flexible hash output sizes. - Accessing pre-finalization Keccak hashes for systems that depend on the old Keccak implementation prior to NIST standardization. - Integrating SHA-3 hashing into Python 3.9–3.13 codebases via the standard hashlib interface. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides SHA-3, SHAKE, and Keccak hash functions for Python 3.9–3.13 via a PEP 247 compatible interface, with optional monkey-patching of the hashlib module. Yes, if you need SHA-3 or SHAKE on Python 3.9–3.13 and require legacy Keccak hashes or pre-NIST compatibility. The package is stable and dependency-free, but install friction is medium due to C compilation. The 421-day release gap suggests maintenance is minimal; verify active support for your use case before adopting. ## Install pip install safe-pysha3 uv add safe-pysha3 poetry add safe-pysha3 ## Installing safe-pysha3 Before you install: Medium install friction due to C extension compilation; prebuilt wheels available for Python 3.9–3.13 on Linux and musl platforms. Package is aging (last release 421 days ago) but repository remains active with no archived status. License in practice: Dual-licensed under PSFL and CC0 1.0 Universal (Keccak component); permissive treatment allows use in most contexts without restriction. Quickstart: import hashlib s = hashlib.sha3_512() s.update(b"data") print(s.hexdigest()) Requires C compiler and development headers at install time due to C extension; Python 3.9 or later. Verify before relying: - Whether the package is actively maintained or in maintenance-only mode given the 421-day gap since last release. - Performance characteristics compared to Python 3.6+ built-in hashlib SHA-3 support on modern Python versions. - Whether monkey-patching of hashlib occurs automatically on import and what side effects this may have. ## Package facts - License: PSFL (Keccak: CC0 1.0 Universal) (permissive) - Python support: unspecified - Install friction: medium - Maintenance: aging - Downloads: 362.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sha3 hash python, keccak hashing, shake256 shake128, cryptographic hash functions, nist sha-3 implementation, cryptography, hashing [View on SkillFed](https://skillfed.io/packages/safe-pysha3) · [View on PyPI](https://pypi.org/project/safe-pysha3/)