function unwrapKey
unwrapKey(
wrapped: string,
unwrappingKey: CryptoKey,
): Promise<CryptoKey>

Unwrap a symmetric key Expects format: wk:1:$base64iv:$base64wrapped

Parameters

wrapped: string
unwrappingKey: CryptoKey

Return Type

Promise<CryptoKey>

Usage

import { unwrapKey } from "docs/crypto.ts";