Crypto Lib
    Preparing search index...

    Function detectModernWebCrypto

    • Detect whether modern WebCrypto algorithms are available in the current runtime.

      Checks for: ChaCha20-Poly1305, SHA-3, ML-KEM, Argon2, KMAC. Results are cached after the first call. Use _resetModernWebCryptoDetection() to clear the cache for testing.

      Returns WebCryptoModernSupport

      const support = detectModernWebCrypto();
      console.log(support.chacha20poly1305); // false (not yet available)