DH.generate(size [, generator]) â dh
Class Public methods
Creates a new DH instance from scratch by generating
the private and public components alike.
Parameters
size is an integer representing the desired key size. Keys
smaller than 1024 bits should be considered insecure.
generator is a small number > 1, typically 2 or 5.