function deriveKEK
deriveKEK(passwordHash: string): Promise<CryptoKey>

Derive a Key Encryption Key (KEK) from password hash and DB_ENCRYPTION_KEY Uses PBKDF2 with the password hash as input and DB_ENCRYPTION_KEY as salt

Parameters

passwordHash: string

Return Type

Promise<CryptoKey>

Usage

import { deriveKEK } from "doc.ts";