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

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

Parameters

isDsa: boolean

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