Skip to main content
Module

x/simple_utility/mod.ts>pkGenerateECDH

Simplify processing for Deno.
Go to Latest
function pkGenerateECDH
import { pkGenerateECDH } from "https://deno.land/x/simple_utility@v2.0.10/mod.ts";

Generate exportable public-key pair for ECDH. Curve algorithm is "NIST P-256".

Examples

Example 1

const k1 = await pkGenerateECDH();
const k2 = await pkGenerateECDH();