Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/jose/jwe/compact/encrypt.ts>CompactEncrypt#setInitializationVector

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
method CompactEncrypt.prototype.setInitializationVector
Deprecated
Deprecated

You should not use this method. It is only really intended for test and vector validation purposes.

import { CompactEncrypt } from "https://deno.land/x/jose@v5.2.3/jwe/compact/encrypt.ts";

Sets the JWE Initialization Vector to use for content encryption, by default a random suitable one is generated for the JWE enc" (Encryption Algorithm) Header Parameter.

Parameters

iv: Uint8Array

JWE Initialization Vector.