@peculiar/webcrypto

  • Version 1.4.6
  • Published
  • 192 kB
  • 5 dependencies
  • MIT license

Install

npm i @peculiar/webcrypto
yarn add @peculiar/webcrypto
pnpm add @peculiar/webcrypto

Overview

A WebCrypto Polyfill for NodeJS

Index

Classes

class Crypto

class Crypto implements globalThis.Crypto {}

    property subtle

    subtle: SubtleCrypto;

      method getRandomValues

      getRandomValues: <T extends ArrayBufferView>(array: T) => T;

        method randomUUID

        randomUUID: () => `${string}-${string}-${string}-${string}-${string}`;

          class CryptoKey

          class CryptoKey implements globalThis.CryptoKey {}

            property algorithm

            algorithm: KeyAlgorithm;

              property extractable

              extractable: boolean;

                property type

                type: KeyType;

                  property usages

                  usages: KeyUsage[];

                    Package Files (1)

                    Dependencies (5)

                    Dev Dependencies (13)

                    Peer Dependencies (0)

                    No peer dependencies.

                    Badge

                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@peculiar/webcrypto.

                    • Markdown
                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@peculiar/webcrypto)
                    • HTML
                      <a href="https://www.jsdocs.io/package/@peculiar/webcrypto"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>