CryptoKey
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1322
The CryptoKey interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
Available only in secure contexts.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CryptoKey():
CryptoKey
Returns
Section titled “Returns”CryptoKey
Properties
Section titled “Properties”algorithm
Section titled “algorithm”
readonlyalgorithm:CryptoKeyKeyAlgorithm|CryptoKeyAesKeyAlgorithm|CryptoKeyHmacKeyAlgorithm|CryptoKeyRsaKeyAlgorithm|CryptoKeyEllipticKeyAlgorithm|CryptoKeyArbitraryKeyAlgorithm
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1340
The read-only algorithm property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
extractable
Section titled “extractable”
readonlyextractable:boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1334
The read-only extractable property of the CryptoKey interface indicates whether or not the key may be extracted using SubtleCrypto.exportKey() or SubtleCrypto.wrapKey().
readonlytype:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1328
The read-only type property of the CryptoKey interface indicates which kind of key is represented by the object.
usages
Section titled “usages”
readonlyusages:string[]
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1352
The read-only usages property of the CryptoKey interface indicates what can be done with the key.