Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Crypto

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

interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
randomUUID(): string;
}
var Crypto: {
prototype: Crypto;
new (): Crypto;
}
;

§Properties

§
readonly subtle: SubtleCrypto
[src]

Available only in secure contexts.

§Methods

§
getRandomValues<T extends ArrayBufferView | null>(array: T): T
[src]
§
randomUUID(): string
[src]

Available only in secure contexts.