Skip to main content
webcrypto.CryptoKeyPair - node__crypto.d.ts - Node documentation
interface webcrypto.CryptoKeyPair

Usage in Deno

```typescript import { webcrypto } from "node:node__crypto.d.ts"; ```
The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.

Properties

A [CryptoKey](../.././node__crypto.d.ts/~/webcrypto.CryptoKey) whose type will be `'private'`.
A [CryptoKey](../.././node__crypto.d.ts/~/webcrypto.CryptoKey) whose type will be `'public'`.