Class Crypto

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

Hierarchy

  • Crypto

Implements

Accessors

Methods

Accessors

  • get subtle(): SubtleCrypto
  • The crypto.subtle interface is not yet implemented. An error will be thrown if this property is accessed.

    Returns SubtleCrypto

Methods

  • Fills the provided TypedArray with cryptographically strong random values.

    Type Parameters

    Parameters

    • array: T

      The TypedArray to fill with random values.

    Returns T

    The same TypedArray filled with random values.

  • Generates a cryptographically strong random unique identifier (UUID).

    Returns `${string}-${string}-${string}-${string}-${string}`

    A string representation of a UUID.

Generated using TypeDoc