Registry / security / crypto-cpp-py

crypto-cpp-py

JSON →
library2.0.0pypypi✓ verified 85d ago

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.

pip install crypto-cpp-py
INSTALL
IMPORT
SIG · CRYPTO-CPP-PY
C
crypto-cpp-py
securitypythonv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

crypto_cpp_py
✓ import crypto_cpp_py
✗ import crypto_cpp

Compute a single Pedersen hash.

import crypto_cpp # Compute a Pedersen hash result = crypto_cpp.pedersen_hash(b"hello") print(result.hex())
Debug
Known issues
breakingIn v2.0.0, the pedersen_hash function now returns bytes instead of a hex string.
fix
Use .hex() on the result if you need a string.
affects: >=2.0.0 <3.0.0
deprecatedFunctions prefixed with '_' (e.g., '_crypto_cpp_init') are internal and may be removed in v3.0.0.
fix
Do not call underscored functions; use public API.
affects: >=2.0.0
gotchaThe library expects bytes inputs; passing a string will cause a TypeError.
fix
Always encode strings: b"data" or .encode()
affects: >=1.0.0
Upgrade
Version history
2.0.0latest on PyPI · released Apr 3, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
crypto-cpp-py — pip install crypto-cpp-py · libregistry