method DiffieHellman.prototype.getPublicKey
Jump to headingDiffieHellman.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 Jump to heading
Buffer
Jump to headingDiffieHellman.prototype.getPublicKey(encoding: BinaryToTextEncoding): string
Parameters Jump to heading
Jump to headingencoding: BinaryToTextEncoding
Return Type Jump to heading
string