Type Alias: CryptoKey

July 29, 2026 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.

โ€ข CryptoKey = typeof globalThis extends object ? Extract<R, { type: string; }> : CryptoKeyStructuralFallback

CryptoKey is a representation of a key/secret available in all supported runtimes. In addition to the Key Import Functions you may use the SubtleCrypto.importKey API to obtain a CryptoKey from your existing key material.