@cryptography/sha256
High-performance synchronous SHA-256 implementation for JavaScript. Optimized for browsers.
Features
- Blazing fast
- Ultra lightweight
- ECMAScript 3-6
- Typed
- Tested
Setup
Package is available through npm
and yarn
npm install @cryptography/sha256
yarn add @cryptography/sha256
Usage
This package is designed to be simple and lightweight. It is exported as single synchronous function.
It is highly recommended to run CPU-intensive tasks in a Web Worker.
import sha256 from '@cryptography/sha256'
const hash = sha256('Hello World!')
Benchmarks
Faster than forge and WebCrypto API. Benchmark is coming soon.
Contributing
Contributions are welcome! Contribution guidelines will be published later.