method DiffieHellman.prototype.getGenerator
Usage
import { DiffieHellman } from "node:crypto";
Returns the Diffie-Hellman generator in the specified encoding.
If encoding is provided a string is
returned; otherwise a Buffer is returned.
encoding: BinaryToTextEncoding