method DiffieHellman.prototype.getPrivateKey
Jump to headingDiffieHellman.prototype.getPrivateKey(): Buffer
Returns the Diffie-Hellman private key in the specified encoding
.
If encoding
is provided a
string is returned; otherwise a Buffer
is returned.
Return Type Jump to heading
Buffer
Jump to headingDiffieHellman.prototype.getPrivateKey(encoding: BinaryToTextEncoding): string
Parameters Jump to heading
Jump to headingencoding: BinaryToTextEncoding
Return Type Jump to heading
string