Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function cryptoGenerateKey
import { cryptoGenerateKey } from "https://deno.land/x/simple_utility@v0.0.13/src/crypto.ts";

Generate and export public/private key pair as a portable byte array.

Parameters

isECDH: boolean

Outputs the key for ECDH if true, for ECDSA if false.