/react-file-hash

React native module for generating hmacsha256 of file

Primary LanguageObjective-CMIT LicenseMIT

react-native-file-hash

File utility for generating hash mac of file. Currently it suppport hmacsha256 for ios only.

Installation

npm install react-native-file-hash

Usage

import {NativeModules} from 'react-native';

// ...

var FileHash = NativeModules.FileHash;
FileHash.hashSha(<File Path>, <Encryption Key>)
  .then((hmac)=>{
    console.log('File hamc => ', hmac);
  }

Contributing

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

License

MIT