Module

x/jose/index.ts>EncryptJWT#setContentEncryptionKey

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 EncryptJWT.prototype.setContentEncryptionKey
Deprecated
Deprecated

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

import { EncryptJWT } from "https://dotland.deno.dev/x/jose@v5.9.2/index.ts";

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

Parameters

cek: Uint8Array

JWE Content Encryption Key.