@aws-crypto/sha256-js

  • Version 2.0.2
  • Published
  • 86 kB
  • 3 dependencies
  • Apache-2.0 license

Install

npm i @aws-crypto/sha256-js
yarn add @aws-crypto/sha256-js
pnpm add @aws-crypto/sha256-js

Overview

A pure JS implementation SHA256.

Index

Classes

class Sha256

class Sha256 implements Hash {}

    constructor

    constructor(secret?: SourceData);

      method digest

      digest: () => Promise<Uint8Array>;

        method digestSync

        digestSync: () => Uint8Array;

          method update

          update: (toHash: SourceData) => void;

            Package Files (2)

            Dependencies (3)

            Dev Dependencies (0)

            No dev dependencies.

            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/@aws-crypto/sha256-js.

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