@aws-crypto/sha256-js
A pure JS implementation SHA256.
Last updated 2 years ago by aws-crypto-tools-ci-bot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @aws-crypto/sha256-js 
SYNC missed versions from official npm registry.

crypto-sha256-js

A pure JS implementation SHA256.

Usage

  • To hash "some data"
import {Sha256} from '@aws-crypto/sha256-js';

const hash = new Sha256();
hash.update('some data');
const result = await hash.digest();

  • To hmac "some data" with "a key"
import {Sha256} from '@aws-crypto/sha256-js';

const hash = new Sha256('a key');
hash.update('some data');
const result = await hash.digest();

Test

npm test

Current Tags

  • 5.2.0                                ...           latest (2 years ago)

19 Versions

  • 5.2.0                                ...           2 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-alpha.0                                ...           6 years ago
  • 0.1.0-preview.4                                ...           6 years ago
  • 0.1.0-preview.3                                ...           6 years ago
  • 0.1.0-preview.2                                ...           6 years ago
  • 0.1.0-preview.1                                ...           7 years ago
  • 0.1.0 [deprecated]           ...           7 years ago

Copyright 2013 - present © cnpmjs.org | Home |