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

x/dtils/devops/deps.ts>dtils.generateKeyPair

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

Generates an asymmetric, base64 encoded key pair for signing or encryption purposes

Parameters

algorithm: "rsa" | "ec"