Registry / serialization / checkhash

checkhash

JSON →
library1.0.1pypypi✓ verified 84d ago

A Python package to check if a string is a valid hash, supporting multiple hash algorithms (MD5, SHA1, SHA256, SHA512, RipeMD, CRC, Adler32, Whirlpool, etc.). Version 1.0.1 released November 2022. Low maintenance cadence.

pip install checkhash
INSTALL
IMPORT
SIG · CHECKHASH
C
checkhash
serializationpythonv1.0.1
Install
1.6s avg
Import
—
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.0.1 · 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
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
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.

isAdler32
✓ from checkHash import isAdler32
✗ from checkhash import checkHash
isCRC16
✓ from checkHash import isCRC16
✗ from checkhash import checkHash
isMD5
✓ from checkHash import isMD5
✗ from checkhash import checkHash

Invalid release date detected, using current date.

from checkhash import checkHash result = checkHash('d41d8cd98f00b204e9800998ecf8427e') print(result) # True or False # Specify algorithm from checkhash import md5, sha1 print(md5('d41d8cd98f00b204e9800998ecf8427e')) # True print(sha1('da39a3ee5e6b4b0d3255bfef95601890afd80709')) # True
Debug
Known issues
gotchaPackage name on PyPI is 'checkhash' (all lowercase) but import uses camelCase: 'checkHash' (capital H).
fix
Use 'from checkhash import checkHash' not 'import checkHash'.
affects: all
gotchaThe checkHash function returns True for any valid hash (multiple algorithms). To check a specific algorithm, import that algorithm's function directly.
fix
Use e.g., 'from checkhash import md5' and call md5(string).
affects: all
Upgrade
Version history
1.0.1latest on PyPI · released Mar 1, 2023
Audit
Dependencies
isHexrequiredUsed for hex string validation
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
checkhash — pip install checkhash · libregistry