Crypto

class Crypto(source)

The Crypto interface represents basic cryptography features available in the current context.

MDN Reference

Properties

Link copied to clipboard

The Crypto.subtle read-only property returns a cryptographic operations. Available only in secure contexts.

Functions

Link copied to clipboard
fun <T : ArrayBufferView<*>> getRandomValues(array: T): T

The Crypto.getRandomValues() method lets you get cryptographically strong random values.

Link copied to clipboard

The randomUUID() method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. Available only in secure contexts.