@mfellner/react-native-fast-create-hash
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.2 • Public • Published

react-native-fast-create-hash

Build Status Codecov Version Downloads

Fast, native createHash implementation for React Native.

Installation

yarn add @mfellner/react-native-fast-create-hash

Usage

import { createHash } from '@mfellner/react-native-fast-create-hash';
import { Buffer } from 'buffer';

const buffer: Buffer = await createHash(Buffer.from('hello'), 'sha256');

createHash(data: Uint8Array, algorithm: Algorithm): Promise<Buffer>

  • data – Raw input bytes to be hashed.
  • algorithm – Name of a supported SHA algorithm.
  • Returns: Raw bytes of the hash digest.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Package Sidebar

Install

npm i @mfellner/react-native-fast-create-hash

Weekly Downloads

22

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

220 kB

Total Files

50

Last publish

Collaborators

  • mfellner