Skip to main content
method ECDH.prototype.getPrivateKey
ECDH.prototype.getPrivateKey(): Buffer
Deprecated

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

Return Type

Buffer

The EC Diffie-Hellman in the specified encoding.

ECDH.prototype.getPrivateKey(encoding: BinaryToTextEncoding): string
Deprecated

Parameters

Return Type

string
Back to top