method DiffieHellman.prototype.getPublicKey
#DiffieHellman.prototype.getPublicKey(): BufferReturns 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#DiffieHellman.prototype.getPublicKey(encoding: BinaryToTextEncoding): stringParameters #
#encoding: BinaryToTextEncodingReturn Type #
string