{"repo":"ecies/js","free":true,"listed":false,"github":"https://github.com/ecies/js","clone":"git clone https://github.com/ecies/js.git","description":"Elliptic Curve Integrated Encryption Scheme for secp256k1/curve25519 in TypeScript","language":"TypeScript","stars":161,"topics":["cryptocurrency","cryptography","bitcoin","ethereum","secp256k1","typescript","ecies","javascript","elliptic-curve-cryptography"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"eciesjs Elliptic Curve Integrated Encryption Scheme for secp256k1/curve25519 in TypeScript. This is the JavaScript/TypeScript version of eciespy with a built-in class-like secp256k1/curve25519 API. You can learn the details in DETAILS.md. Install We recommend using the latest JavaScript/TypeScript runtime although it's still possible to install on some old versions. This library supports multiple platforms (browser, node, bun/deno, react native), see Multi-platform Support. For security, see Security. Quick Start Or run the example code: See Configuration to control with more granularity. Sponsors API encrypt(receiverRawPK: string Uint8Array, data: Uint8Array, config?: Config): Uint8Array Parameters: - receiverRawPK - Receiver's public key, hex string or Uint8Array - data - Data to encrypt - config - Optional configuration (defaults to ECIES CONFIG ) Returns: Uint8Array decrypt(receiverRawSK: string Uint8Array, data: Uint8Array, config?: Config): Uint8Array Parameters: - receiverRawSK - Receiver's private key, hex string or Uint8Array - data - Data to decrypt - config - Optional configuration (defaults to ECIES CONFIG ) Returns: Uint8Array PrivateKey - Methods - Properties PublicKey - Methods 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 (on","default_branch":null,"files":null,"tree":[],"storefront":"/r/ecies","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ecies/js/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."}