温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/crypto/publicDecrypt
点击访问原文链接

Node crypto.publicDecrypt function | API Reference | Bun

Node crypto.publicDecrypt function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:crypto/publicDecryptFpublicDecrypt

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:crypto/publicDecryptFpublicDecrypt

function

crypto.publicDecryptfunction publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike,buffer: string | ArrayBufferViewArrayBufferLike>): NonSharedBuffer;

Decrypts buffer with key.buffer was previously encrypted using the corresponding private key, for example using privateEncrypt.

If key is not a KeyObject, this function behaves as if key had been passed to createPublicKey. If it is an object, the padding property can be passed. Otherwise, this function uses RSA_PKCS1_PADDING.

Because RSA public keys can be derived from private keys, a private key may be passed instead of a public key.

Referenced typesinterface RsaPublicKeykey: KeyLikepadding?: numberinterface RsaPrivateKeykey: KeyLikeoaepHash?: string
oaepLabel?: TypedArrayArrayBufferLike>padding?: numberpassphrase?: stringtype KeyLike = string | Buffer | KeyObject

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node crypto.publicDecrypt function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:crypto.publicDecrypt | Bun