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()
][]
Feedback
Was this page helpful?
很高兴听到! 请告诉我们,我们如何才能改善.
很遗憾听到这个消息。 请告诉我们,我们如何才能改善.
最后修改 April 16, 2020: 加密 (a75e592)