Skip to main content
Up or down tonavigateEnter toselectEscape toclose⌘⇧KAI

method DiffieHellman.prototype.getGenerator

Overload 1

#DiffieHellman.prototype.getGenerator(): Buffer

Returns the Diffie-Hellman generator in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.

Return Type #

Buffer

Overload 2

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

Parameters #

Return Type #

string