Move the secure-random code into this project due to build issues with the module, which is no longer maintained

This commit is contained in:
Paul Frazee 2022-06-15 22:08:28 -05:00
parent 2c73703d7d
commit a56cae626a
12 changed files with 110 additions and 18 deletions

View file

@ -51,7 +51,7 @@ The `metro.config.js` file rewrites a couple of imports. This is partly to work
### Cryptography
For native builds, we must provide a polyfill of `webcrypto`. We use [react-native-securerandom](https://github.com/robhogan/react-native-securerandom) for the CRNG and [msrcrypto](https://github.com/kevlened/msrCrypto) for the cryptography.
For native builds, we must provide a polyfill of `webcrypto`. We use a custom native module AppSecureRandom (based on [react-native-securerandom](https://github.com/robhogan/react-native-securerandom)) for the CRNG and [msrcrypto](https://github.com/kevlened/msrCrypto) for the cryptography.
**NOTE** Keys are not currently stored securely.