Flowdock
method

new

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: DH
new(p1 = v1, p2 = v2) public

Parameters

  • size is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure.

  • generator is a small number > 1, typically 2 or 5.

  • string contains the DER or PEM encoded key.

Examples

  • DH.new -> dh

  • DH.new(1024) -> dh

  • DH.new(1024, 5) -> dh

  • DH.new(File.read(‘key.pem’)) -> dh

Show source
Register or log in to add new notes.