Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/crypto.ts>Cipheriv

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Cipheriv
implements Cipher
extends Transform
Re-export
import { Cipheriv } from "https://deno.land/std@0.145.0/node/crypto.ts";

Constructors

new
Cipheriv(
_cipher: string,
_key: CipherKey,
_iv: BinaryLike | null,
_options?: TransformOptions,
)

Methods

final(): Buffer
final(outputEncoding: BufferEncoding): string
final(_outputEncoding?: string): Buffer | string
getAuthTag(): Buffer
setAAD(_buffer: ArrayBufferView, _options?: { plaintextLength: number; }): this
setAutoPadding(_autoPadding?: boolean): this
update(data: BinaryLike): Buffer
update(data: string, inputEncoding: Encoding): Buffer
update(
data: ArrayBufferView,
inputEncoding: undefined,
outputEncoding: Encoding,
): string
update(
data: string,
inputEncoding: Encoding | undefined,
outputEncoding: Encoding,
): string
update(
_data: string | BinaryLike | ArrayBufferView,
_inputEncoding?: Encoding,
_outputEncoding?: Encoding,
): Buffer | string