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

JiriHoffmann/react-native-cryptopp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.hash.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.