crypto.createDiffieHellman(primeLength[, generator])

  • primeLength {number}
  • generator {number} Default: 2
  • Returns: {DiffieHellman}

Creates a DiffieHellman key exchange object and generates a prime of primeLength bits using an optional specific numeric generator. If generator is not specified, the value 2 is used.

crypto.createDiffieHellmanGroup(name)

  • name {string}
  • Returns: {DiffieHellmanGroup}

An alias for [crypto.getDiffieHellman()][]


最后修改 April 16, 2020: 加密 (a75e592)