rnc
react-native-cryptopp
npm i react-native-cryptopp
rnc

react-native-cryptopp

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

by Jiri Hoffmann

0.3.1 (see all)License:MITTypeScript:Built-In
npm i react-native-cryptopp
Readme

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.

Downloads/wk

12

GitHub Stars

22

LAST COMMIT

6mos ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
0.3.1
latest
22d ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate