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

Usage in Deno

```typescript import { Decipher } from "node:node__crypto.d.ts"; ```
Decipher.prototype.final(): Buffer
Once the `decipher.final()` method has been called, the `Decipher` object can no longer be used to decrypt data. Attempts to call `decipher.final()` more than once will result in an error being thrown.

Return Type

Buffer
Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a Buffer is returned.
Decipher.prototype.final(outputEncoding: BufferEncoding): string

Parameters

outputEncoding: BufferEncoding

Return Type

string