mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
1.5 KiB
1.5 KiB
Type alias: KeyLike
types.KeyLike
Ƭ KeyLike: KeyObject | CryptoKey | Uint8Array
KeyLike are platform-specific references to keying material.
- KeyObject instances come from node's crypto module, e.g.:
- CryptoKey instances come from Web Cryptography API, e.g.:
- Uint8Array is used exclusively for symmetric secret representations, a CryptoKey or KeyObject is preferred, but in Web Crypto API this isn't an option for some algorithms.
Defined in: types.d.ts:101