Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simplewebauthn/packages/types/src/dom.ts>Crypto

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
Latest
interface Crypto
import { type Crypto } from "https://deno.land/x/simplewebauthn@v11.0.0/packages/types/src/dom.ts";

Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

MDN Reference

Properties

readonly
subtle: SubtleCrypto

Available only in secure contexts.

MDN Reference

Methods

getRandomValues<T extends ArrayBufferView | null>(array: T): T
randomUUID(): `${string}-${string}-${string}-${string}-${string}`

Available only in secure contexts.

MDN Reference