Interface StdCrypto

Extensions to the Web Crypto interface.

interface StdCrypto {
    subtle: StdSubtleCrypto;
    getRandomValues<T>(array: T): T;
    randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
Hierarchy
  • Crypto
    • StdCrypto

Properties

Extension to the crypto.SubtleCrypto interface.

Methods

  • Type Parameters

    • T extends null | ArrayBufferView

    Parameters

    • array: T

    Returns T

  • Available only in secure contexts.

    MDN Reference

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