Skip to content

Super fast cryptography library for React Native using Crypto++ and JSI

License

Notifications You must be signed in to change notification settings

seald/react-native-cryptopp

 
 

Repository files navigation

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.hashFunctions.SHA1('Hello World');

TODOs:

  • Implement remaining functionality
  • Use GitHub Actions to pre-compile Crypto++ for iOS and Android
  • Async multi-threaded version of each function
  • 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.

About

Super fast cryptography library for React Native using Crypto++ and JSI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 54.7%
  • Java 14.3%
  • TypeScript 11.9%
  • JavaScript 5.1%
  • Objective-C 3.6%
  • Shell 2.8%
  • Other 7.6%