{"id":44647,"library":"crypto-cpp-py","title":"crypto-cpp-py","description":"A Python binding for the crypto-cpp C++ library, providing efficient cryptographic primitives. Version 2.0.0 supports Python >=3.10 and includes key wrappers for elliptic curve operations, hashing, and signature verification. Maintained by Software Mansion Labs with monthly releases.","status":"active","version":"2.0.0","language":"python","source_language":"en","source_url":"https://github.com/software-mansion-labs/crypto-cpp-py.git","tags":["cryptography","c++-binding","pedersen-hash","elliptic-curve"],"install":[{"cmd":"pip install crypto-cpp-py","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"wrong":"import crypto_cpp","symbol":"crypto_cpp_py","correct":"import crypto_cpp_py"}],"quickstart":{"code":"import crypto_cpp\n\n# Compute a Pedersen hash\nresult = crypto_cpp.pedersen_hash(b\"hello\")\nprint(result.hex())","lang":"python","description":"Compute a single Pedersen hash."},"warnings":[{"fix":"Use .hex() on the result if you need a string.","message":"In v2.0.0, the pedersen_hash function now returns bytes instead of a hex string.","severity":"breaking","affected_versions":">=2.0.0 <3.0.0"},{"fix":"Do not call underscored functions; use public API.","message":"Functions prefixed with '_' (e.g., '_crypto_cpp_init') are internal and may be removed in v3.0.0.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Always encode strings: b\"data\" or .encode()","message":"The library expects bytes inputs; passing a string will cause a TypeError.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'2.0.0':20 '3.10':23 'bind':7,46 'c':13,45 'cpp':3,12 'crypto':2,11 'crypto-cpp':10 'crypto-cpp-pi':1 'cryptograph':17 'cryptographi':44 'curv':30,52 'effici':16 'ellipt':29,51 'elliptic-curv':50 'hash':32,49 'includ':25 'key':26 'lab':40 'librari':14 'maintain':36 'mansion':39 'month':42 'oper':31 'pedersen':48 'pedersen-hash':47 'primit':18 'provid':15 'py':4 'python':6,22 'releas':43 'signatur':34 'softwar':38 'support':21 'verif':35 'version':19 'wrapper':27","created_at":"2026-06-07T12:51:09.021256+00:00","updated_at":"2026-06-07T12:51:09.021256+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/software-mansion-labs/crypto-cpp-py.git","github":"https://github.com/software-mansion-labs/crypto-cpp-py.git","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["security"],"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}}