Skip to main content
Latest
function cryptoGenerateEncryptKey
import { cryptoGenerateEncryptKey } from "https://deno.land/x/simple_utility@v2.1.0/mod.ts";

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

Examples

Example 1

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