kernl API
    Preparing search index...

    Function installCryptoFallback

    • Fill in the Web Crypto pieces a browser withholds outside a secure context, so the shell works when served over plain HTTP from an onion or overlay network address. crypto.getRandomValues is always present; randomUUID and subtle are not. Existing implementations are never replaced.

      Call it once, before anything that may use Web Crypto.

      Parameters

      • scope: CryptoScope = globalThis

        The global to patch. Defaults to globalThis.

      Returns CryptoFallbackReport

      What was added.

      import { installCryptoFallback } from '@kernlize/core/crypto';
      installCryptoFallback(); // { randomUUID: false, subtle: false } over HTTPS