method DiffieHellman.prototype.getPublicKey
Overload 1
#DiffieHellman.prototype.getPublicKey(): Buffer
Returns the Diffie-Hellman public 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.getPublicKey(encoding: BinaryToTextEncoding): string
Parameters #
#encoding: BinaryToTextEncoding
Return Type #
string