react-native-cryptopp
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

React Native Cryptopp

The goal of this library is to provide a wide variety cryptography functionality to React Native at super fast speeds by using a C++ library called Crypto++ under the hood.

Installation

npm install react-native-cryptopp

Optional: Using pre-compiled Crypto++ library

yarn node node_modules/react-native-cryptopp/scripts/download_cryptopp.js

iOS

cd ios && pod install
# or
npx pod install

Important: First time builds will take several minutes as Crypto++ has to be compiled for all CPU architectures. Make sure the android build and pod install is NOT running at the same time! More information about the build process can be found here.

Usage

import Cryptopp from 'react-native-cryptopp';

const hash = Cryptopp.hash.SHA1('Hello World');

TODOs:

  • [ ] Implement remaining functionality
  • [X] Use GitHub Actions to pre-compile Crypto++ for iOS and Android
  • [X] Async multi-threaded version of each function
  • [X] Tests ...
  • [ ] ..., tests, tests... and more tests!

Contributing

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

License

MIT

Check Crypto++ for additional licensing.

Package Sidebar

Install

npm i react-native-cryptopp

Weekly Downloads

8

Version

0.3.1

License

MIT

Unpacked Size

211 kB

Total Files

68

Last publish

Collaborators

  • jirihoffmann