deno.com
method SubtleCrypto.deriveKey
#SubtleCrypto.deriveKey(): Promise<CryptoKey>

This method is used to derive a secret key from a base or master key using a cryptographic algorithm. It returns a Promise which fulfils with an object of the new key.

Examples #

#
// Derive a key using an HKDF algorithm
await crypto.subtle.deriveKey("HKDF", baseKey, derivedKeyType, extractable, keyUsages);

Parameters #

Return Type #

Promise<CryptoKey>

See #