owlcub-academy/node_modules/@aws-crypto/supports-web-crypto
Romain bogdanovic 23febeebd4 fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
..
build fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
src fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
CHANGELOG.md fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
LICENSE fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
README.md fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
package.json fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
tsconfig.json fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00
tsconfig.module.json fix: use client directive order, remove unused useTranslations import 2026-03-28 19:18:03 +01:00

README.md

@aws-crypto/supports-web-crypto

Functions to check web crypto support for browsers.

Usage

import {supportsWebCrypto} from '@aws-crypto/supports-web-crypto';

if (supportsWebCrypto(window)) {
  // window.crypto.subtle.encrypt will exist
}

supportsWebCrypto

Used to make sure window.crypto.subtle exists and implements crypto functions as well as a cryptographic secure random source exists.

supportsSecureRandom

Used to make sure that a cryptographic secure random source exists. Does not check for window.crypto.subtle.

supportsSubtleCrypto

supportsZeroByteGCM

Test

npm test