Skip to main content
method DiffieHellman.prototype.getPrime
DiffieHellman.prototype.getPrime(): Buffer
Deprecated

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

Return Type

Buffer
DiffieHellman.prototype.getPrime(encoding: BinaryToTextEncoding): string
Deprecated

Parameters

Return Type

string
Back to top