ECDH.prototype.getPrivateKey - Node documentation
method ECDH.prototype.getPrivateKey

Usage

import { ECDH } from "node:crypto";

If encoding is specified, a string is returned; otherwise a Buffer is returned.

Return Type

Buffer

The EC Diffie-Hellman in the specified encoding.

Parameters

Return Type

string