{"id":23419,"library":"checkhash","title":"checkHash","description":"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.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/xhelphin/checkHash","tags":["hash","validation","security","checkhash"],"install":[{"cmd":"pip install checkhash","lang":"bash","label":"Install checkhash"}],"dependencies":[{"reason":"Used for hex string validation","package":"isHex","optional":false}],"imports":[{"note":"The package is checkhash (lowercase) and function is checkHash (camelCase).","wrong":"import checkHash","symbol":"checkHash","correct":"from checkhash import checkHash"},{"note":"No common wrong import.","symbol":"isHash","correct":"from checkhash import isHash"},{"note":"Import the specific algorithm checker, e.g., from checkhash import md5","symbol":"hash_algorithm","correct":"from checkhash import hash_algorithm"}],"quickstart":{"code":"from checkhash import checkHash\n\nresult = checkHash('d41d8cd98f00b204e9800998ecf8427e')\nprint(result)  # True or False\n\n# Specify algorithm\nfrom checkhash import md5, sha1\nprint(md5('d41d8cd98f00b204e9800998ecf8427e'))  # True\nprint(sha1('da39a3ee5e6b4b0d3255bfef95601890afd80709'))  # True","lang":"python","description":"Invalid release date detected, using current date."},"warnings":[{"fix":"Use 'from checkhash import checkHash' not 'import checkHash'.","message":"Package name on PyPI is 'checkhash' (all lowercase) but import uses camelCase: 'checkHash' (capital H).","severity":"gotcha","affected_versions":"all"},{"fix":"Use e.g., 'from checkhash import md5' and call md5(string).","message":"The checkHash function returns True for any valid hash (multiple algorithms). To check a specific algorithm, import that algorithm's function directly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: import checkhash","cause":"Trying to import 'checkHash' directly (camelCase) rather than the package name 'checkhash'.","error":"ModuleNotFoundError: No module named 'checkHash'"},{"fix":"Use: from checkhash import checkHash","cause":"Confusion between package name and function name. The function is checkHash, not checkhash.","error":"ImportError: cannot import name 'checkhash' from 'checkhash'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}