How to use the @aws-sdk/hash-node.Hash function in @aws-sdk/hash-node

To help you get started, we’ve selected a few @aws-sdk/hash-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-sdk-js-v3 / packages / md5-universal / src / index.ts View on Github external
constructor() {
    if (supportsCryptoModule()) {
      this.hash = new NodeHash("md5");
    } else {
      this.hash = new BrowserMd5();
    }
  }
github aws / aws-sdk-js-v3 / packages / crypto-sha256-universal / src / index.ts View on Github external
constructor(secret?: SourceData) {
        if (supportsCryptoModule()) {
            this.hash = new NodeHash('sha256', secret);
        } else {
            this.hash = new BrowserSha256(secret);
        }
    }

@aws-sdk/hash-node

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/hash-node/latest.svg)](https://www.npmjs.com/package/@aws-sdk/hash-node) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/hash-node.svg)](https://www.npmjs.com/package/@aws-sdk/hash-node)

Apache-2.0
Latest version published 1 year ago

Package Health Score

72 / 100
Full package analysis

Popular @aws-sdk/hash-node functions

Similar packages