Chartbreaker
    Preparing search index...

    Interface Crypto

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

    MDN Reference

    interface Crypto {
        subtle: SubtleCrypto;
        getRandomValues<T extends ArrayBufferView<ArrayBufferLike>>(array: T): T;
        randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
    }
    Index

    Properties

    subtle: SubtleCrypto

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

    MDN Reference

    Methods

    • 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.

      MDN Reference

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