Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 865 Bytes

Readme.md

File metadata and controls

28 lines (18 loc) · 865 Bytes

ECDH-es

Pure JavaScript ES module implementation of ECDH and ECDSA for browsers and Deno.

🚨 Warning 🚨 This library has not received any formal audit and is not considered safe for production use!

Usage

import { ECDH } from "https://taisukef.github.io/ECDH-es/ECDH.js";

const type = "secp256r1";
const curve = ECDH.getCurve(type);
const keys = ECDH.generateKeys(curve);
console.log(keys);

For usage details see the examples in the examples folder.

Dependencies

Base project

forked from developmentil/ecdh: Native Node.js module for ECDH and ECDSA.