Skip to main content
Module

x/jose/runtime/webcrypto.ts

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
File
export default crypto
export function isCryptoKey(key: unknown): key is CryptoKey { try { return ( key != null && typeof (<CryptoKey>key).extractable === 'boolean' && typeof (<CryptoKey>key).algorithm.name === 'string' && typeof (<CryptoKey>key).type === 'string' ) } catch { return false }}