Package detail

@aws-crypto/supports-web-crypto

aws84.1mApache-2.05.2.0

Provides functions for detecting if the host environment supports the WebCrypto API

readme

@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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

5.2.0 (2023-10-16)

Features

  • support ESM artifacts in all packages (#752) (e930ffb)

5.1.0 (2023-09-22)

Bug Fixes

Features

5.0.0 (2023-07-13)

  • feat!: drop support for IE 11 (#629) (6c49fb6), closes #629
  • chore!: Drop Node 14 Support (#678) (4bae6e9), closes #678

BREAKING CHANGES

  • Remove support for IE11

Co-authored-by: texastony 5892063+texastony@users.noreply.github.com

  • Node 14 is no longer supported nor tested.

4.0.1 (2023-05-22)

Bug Fixes

  • correct package naming in "browser" fields (#625) (24d8c2b)

4.0.0 (2023-02-20)

  • feat!: deprecate node12. (d85ca33)

BREAKING CHANGES

  • Remove node12 from CI (#543)

3.0.0 (2023-01-12)

Bug Fixes

  • docs: sha256 packages, clarify hmac support (#455) (1be5043)

  • feat!: replace Hash implementations with Checksum interface (#492) (da43dc0), closes #492

BREAKING CHANGES

  • All classes that implemented Hash now implement Checksum.

2.0.2 (2022-09-07)

Bug Fixes

2.0.1 (2021-12-09)

Bug Fixes

  • uint32ArrayFrom: increment index & polyfill for Uint32Array (#270) (a70d603)

2.0.0 (2021-10-25)

  • feat!: update support policy for node8 and node10 notice (#249) (723e6d2), closes #249

BREAKING CHANGES

  • Deprecate Node8 and Node10

1.2.2 (2021-10-12)

Bug Fixes

  • crc32c: ie11 does not support Array.from (#221) (5f49547)

1.2.1 (2021-09-17)

Bug Fixes

1.2.0 (2021-09-17)

Bug Fixes

  • Adding ie11-detection dependency to sha1-browser (#213) (138750d)

  • feat!: Remove support for old version of Node.js (#210) (eb9100d), closes #210

Features

BREAKING CHANGES

  • Removing Node.Js 8 and 10 from CI