Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.ts>generateKeyPair

The best unofficial library of utilities for Deno applications
Go to Latest
function generateKeyPair
import { generateKeyPair } from "https://deno.land/x/dtils@1.6.2/mod.ts";

Generates an asymmetric key pair for signing or encryption purposes

Parameters

algorithm: "rsa" | "ec"