Returns the Diffie-Hellman prime in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.
DiffieHellman.getPrime method | Node.js crypto module | Bun BuildDocsReferenceGuidesBlogDiscord/node:crypto/DiffieHellman/getPrimeMgetPrime BuildDocsReferenceGuidesBlogDiscord /node:crypto/DiffieHellman/getPrimeMgetPrime crypto.DiffieHellman.getPrimegetPrime(): NonSharedBuffer; getPrime(encoding: BinaryToTextEncoding): string; @param encoding Referenced typestype BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary'
Search the reference...
/
method
Returns the Diffie-Hellman prime in the specified encoding. If encoding is provided a string is returned; otherwise a Buffer is returned.
The encoding of the return value.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →DiffieHellman.getPrime method | Node.js crypto module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:crypto.DiffieHellman.getPrime | Bun