deno.com

method DiffieHellman.prototype.getPrivateKey

Overload 1

#DiffieHellman.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 #

Buffer

Overload 2

#DiffieHellman.prototype.getPrivateKey(encoding: BinaryToTextEncoding): string

Parameters #

Return Type #

string