Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface Cipher
implements ReturnType<Transform>
import { type Cipher } from "https://deno.land/std@0.167.0/node/internal/crypto/cipher.ts";

Methods

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
final(): Buffer
final(outputEncoding: BufferEncoding): string
setAutoPadding(autoPadding?: boolean): this