Skip to main content
DiffieHellman.prototype.getGenerator - node__crypto.d.ts - Node documentation
method DiffieHellman.prototype.getGenerator

Usage in Deno

```typescript import { DiffieHellman } from "node:node__crypto.d.ts"; ```
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
DiffieHellman.prototype.getGenerator(encoding: BinaryToTextEncoding): string

Parameters

Return Type

string