DecipherChaCha20Poly1305.setAutoPadding method | Node.js crypto module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
DecipherChaCha20Poly1305/
setAutoPaddingMsetAutoPadding
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
DecipherChaCha20Poly1305/
setAutoPaddingMsetAutoPadding
method
crypto.DecipherChaCha20Poly1305.setAutoPaddingsetAutoPadding(auto_padding?: boolean): this;
When data has been encrypted without standard block padding, calling decipher.setAutoPadding(false) will disable automatic padding to prevent decipher.final() from checking for and removing padding.
Turning auto padding off will only work if the input data's length is a multiple of the ciphers block size.
The decipher.setAutoPadding() method must be called before decipher.final().
@returns
for method chaining.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →