docs.rodeo

MDN Web Docs mirror

CryptoKey

{{APIRef("Web Crypto API")}} {{SecureContext_header}} {{AvailableInWorkers}} 

The CryptoKey interface of the Web Crypto API represents a cryptographic {{glossary("key")}}  obtained from one of the {{domxref("SubtleCrypto")}}  methods {{domxref("SubtleCrypto.generateKey", "generateKey()")}} , {{domxref("SubtleCrypto.deriveKey", "deriveKey()")}} , {{domxref("SubtleCrypto.importKey", "importKey()")}} , or {{domxref("SubtleCrypto.unwrapKey", "unwrapKey()")}} .

For security reasons, the CryptoKey interface can only be used in a secure context.

Instance properties

Examples

The examples for SubtleCrypto methods often use CryptoKey objects. For example:

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN