Skip to main content
Module

x/jose/index.ts>CompactEncrypt#setContentEncryptionKey

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
method CompactEncrypt.prototype.setContentEncryptionKey
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@v4.8.3/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.