{"id":22370,"library":"siphashc","title":"Siphashc","description":"A C-based Python module implementing SipHash-2-4, a fast cryptographic hash function designed for hash tables and message authentication. Current version is 2.7, requiring Python >=3.10. Releases are intermittent.","status":"active","version":"2.7","language":"python","source_language":"en","source_url":"https://github.com/WeblateOrg/siphashc","tags":["hash","siphash","cryptographic","c-extension"],"install":[{"cmd":"pip install siphashc","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"import siphashc; siphashc.siphash(data)","symbol":"siphash","correct":"from siphashc import siphash"}],"quickstart":{"code":"import siphashc\ndata = b'hello world'\nhashed = siphashc.siphash(data)\nprint(hashed)  # e.g. 0x9f8d5a4b3c2e1f0a","lang":"python","description":"Hash a bytes object using SipHash-2-4."},"warnings":[{"fix":"Call data.encode('utf-8') before hashing.","message":"The function only accepts bytes objects; strings must be encoded first.","severity":"gotcha","affected_versions":"all"},{"fix":"Convert to hex with hex(hashed) if needed.","message":"siphashc returns a 64-bit unsigned integer, not a hex string.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python >=3.10.","message":"Python 3.9 and below are no longer supported as of version 2.7.","severity":"deprecated","affected_versions":">=2.7"}],"env_vars":null,"search_vec":"'-2':10 '-4':11 '2.7':27 '3.10':30 'authent':23 'base':5 'c':4,38 'c-base':3 'c-extens':37 'cryptograph':14,36 'current':24 'design':17 'extens':39 'fast':13 'function':16 'hash':15,19,34 'implement':8 'intermitt':33 'messag':22 'modul':7 'python':6,29 'releas':31 'requir':28 'siphash':9,35 'siphashc':1 'tabl':20 'version':25","created_at":"2026-04-27T17:04:49.252830+00:00","updated_at":"2026-04-27T17:04:49.252830+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.7","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/WeblateOrg/siphashc","docs":null,"changelog":null,"pypi":"https://pypi.org/project/siphashc/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth-security","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}