Skip to main content
Latest
method jose.CompactEncrypt.prototype.setContentEncryptionKey
Deprecated
Deprecated

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

import { jose } from "https://deno.land/x/jwe_cookie_map@v1.0.1/src/deps.ts";
const { CompactEncrypt } = jose;

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.