Skip to main content
Decipher.prototype.setAutoPadding - node__crypto.d.ts - Node documentation
method Decipher.prototype.setAutoPadding

Usage in Deno

```typescript import { Decipher } from "node:node__crypto.d.ts"; ```
Decipher.prototype.setAutoPadding(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()`.

Parameters

optional
auto_padding: boolean

Return Type

this
for method chaining.