Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
react-native-quick-crypto
Advanced tools
A fast implementation of Node's `crypto` module written in C/C++ JSI
A fast implementation of Node's crypto
module written in C/C++ JSI.
QuickCrypto can be used as a drop-in replacement for your Web3/Crypto apps to speed up all cryptography functions.
For example, creating a Wallet using ethers.js uses complex algorithms to generate a private-key/mnemonic-phrase pair:
const start = performance.now()
const wallet = ethers.Wallet.createRandom()
const end = performance.now()
console.log(`Creating a Wallet took ${end - start}ms.`)
Without react-native-crypto 🐢:
Creating a Wallet took 31.3582738422ms
With react-native-crypto ⚡️:
Creating a Wallet took 2.47425001859ms
yarn add react-native-quick-crypto
cd ios && pod install
expo install react-native-quick-crypto
expo prebuild
In your metro.config.js
, add a module resolver to replace crypto
with react-native-quick-crypto
:
+const path = require('path');
module.exports = {
+ resolver: {
+ extraNodeModules: {
+ crypto: path.resolve(__dirname, './node_modules/react-native-quick-crypto'),
+ },
+ },
...
Now, all imports for crypto
will be resolved as react-native-quick-crypto
instead.
As the library uses JSI for synchronous native methods access, remote debugging (e.g. with Chrome) is no longer possible. Instead, you should use Flipper.
react-native-quick-crypto was built at Margelo, an elite app development agency. For enterprise support or other business inquiries, contact us at hello@margelo.io!
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
A fast implementation of Node's `crypto` module written in C/C++ JSI
The npm package react-native-quick-crypto receives a total of 26,021 weekly downloads. As such, react-native-quick-crypto popularity was classified as popular.
We found that react-native-quick-crypto demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.