MgetPrivateKey
Bun

method

crypto.DiffieHellmanGroup.getPrivateKey

getPrivateKey(): NonSharedBuffer;

Returns the Diffie-Hellman private key in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.

encoding: BufferEncoding
): string;

Returns the Diffie-Hellman private key in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.

@param encoding

The encoding of the return value.