{"repo":"ecies/py","free":true,"listed":false,"github":"https://github.com/ecies/py","clone":"git clone https://github.com/ecies/py.git","description":"Elliptic Curve Integrated Encryption Scheme for secp256k1/curve25519 in Python","language":"Python","stars":135,"topics":["cryptocurrency","cryptography","bitcoin","ethereum","secp256k1","ecies","python3","elliptic-curve-cryptography"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"eciespy Elliptic Curve Integrated Encryption Scheme for secp256k1/curve25519 in Python. Other language versions (curve25519 is not supported in some versions): - TypeScript - Rust - Golang - WASM - Java - Dart - Ruby You can also check a web backend demo. Install pip install eciespy Or pip install 'eciespy[eth]' to install eth-keys as well. Quick Start Secp256k1 X25519/Ed25519 Or just use a builtin command eciespy in your favorite command line. API ecies.encrypt(receiver pk: Union[str, bytes], data: bytes, config: Config = ECIES CONFIG) - bytes Parameters: - receiver pk - Receiver's public key (hex str or bytes ) - data - Data to encrypt - config - Optional configuration object Returns: bytes ecies.decrypt(receiver sk: Union[str, bytes], data: bytes, config: Config = ECIES CONFIG) - bytes Parameters: - receiver sk - Receiver's private key (hex str or bytes ) - data - Data to decrypt - config - Optional configuration object Returns: bytes Command Line Interface Show help Generate eth key Encrypt with public key and decrypt with private key Configuration Following configurations are available. - Elliptic curve: secp256k1 or curve25519 (x25519/ed25519) - Ephemeral key format in the payload: compressed or uncompressed (only for secp256k1) - Shared elliptic curve key format in the key derivation: compressed or uncompressed (only for secp256k1) - Symmetric cipher algorithm: AES-256-GCM or XChaCha20-Poly1305 - Symmetric nonce length: 12 or 16 bytes (only for AES-256-GCM) For compati","default_branch":null,"files":null,"tree":[],"storefront":"/r/ecies","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ecies/py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}