BuildDocsReferenceGuidesBlogDiscordnode:cryptoDiffieHellmanMcomputeSecretMgenerateKeysMgetGeneratorMgetPrimeMgetPrivateKeyMgetPublicKeyMsetPrivateKeyMsetPublicKeyPverifyErrorBuildDocsReferenceGuidesBlogDiscordnode:cryptoDiffieHellmanMcomputeSecretMgenerateKeysMgetGeneratorMgetPrimeMgetPrivateKeyMgetPublicKeyMsetPrivateKeyMsetPublicKeyPverifyErrorcrypto.DiffieHellmanDiffieHellmanverifyErrorcomputeSecretcomputeSecretBinaryToTextEncodingcomputeSecretBinaryToTextEncodingcomputeSecretBinaryToTextEncodingBinaryToTextEncodinggenerateKeysDH_generate_key()generateKeysBinaryToTextEncodingDH_generate_key()getGeneratorgetGeneratorBinaryToTextEncodinggetPrimegetPrimeBinaryToTextEncodinggetPrivateKeygetPrivateKeyBinaryToTextEncodinggetPublicKeygetPublicKeyBinaryToTextEncodingsetPrivateKeysetPrivateKeysetPublicKeysetPublicKeyReferenceDocsGuidesDiscordMerch StoreGitHubBlogRuntimePackage managerTest runnerBundlerPackage runnerBun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseWe're hiring →
Node crypto.DiffieHellman class | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- The `DiffieHellman` class is a utility for creating Diffie-Hellman key
exchanges.
Instances of the `DiffieHellman` class can be created using the createDiffieHellman function.
```js
import assert from