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