Skip to main content
KeyObject.prototype.type - crypto - Node documentation
property KeyObject.prototype.type

Usage in Deno

import { KeyObject } from "node:crypto";

Depending on the type of this KeyObject, this property is either'secret' for secret (symmetric) keys, 'public' for public (asymmetric) keys or 'private' for private (asymmetric) keys.

Type