generate

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.

doc_ruby_on_rails
2015-04-25 14:08:54
Comments
Leave a Comment

Please login to continue.