Registry / auth-security / pysha3

pysha3

JSON →
library1.0.2pypypiunverified

SHA-3 (Keccak) hash functions for Python 2.7 to 3.5. Version 1.0.2 is the latest, released in 2017. The library is unmaintained and incompatible with Python 3.6+ due to the `hashlib` standard library having built-in SHA-3 support.

pip install pysha3
INSTALL
IMPORT
SIG · PYSHA3
P
pysha3
auth-securitypythonv1.0.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
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.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

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

sha3_224
from pysha3 import sha3_224
Many users try hashlib.sha3_224() which does not exist in Python <3.6.
sha3_256
from pysha3 import sha3_256
import hashlib; hashlib.sha3_256()
hashlib.sha3_256 is only available in Python 3.6+. On older versions, use pysha3.

Create a SHA3-256 hash of b'hello' using pysha3.

from pysha3 import sha3_256 h = sha3_256(b'hello') print(h.hexdigest()) # Output: 3338be694f50c5f338814986cdf0686453a40b544b9f7c2e8b8b3d0b6f1f3c1e
Debug
Known issues
deprecatedpysha3 is unmaintained and only supports Python up to 3.5. For Python 3.6+, use hashlib.sha3_* from the standard library.
fix
Replace `from pysha3 import sha3_256` with `import hashlib; hashlib.sha3_256()`
affects: >=3.6
gotchapysha3 output may differ from other SHA-3 implementations due to different padding rules for Keccak. Ensure compatibility with your application.
fix
Always confirm the expected output against known test vectors.
affects: all
breakingPython 3.6+ included SHA-3 in hashlib, making pysha3 obsolete. Importing pysha3 on Python 3.6+ will still work but is redundant.
fix
Use `hashlib.sha3_256()` instead.
affects: >=3.6
Upgrade
Version history
1.0.2latest on PyPI · released Jul 18, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
pysha3 — pip install pysha3 · libregistry