Bundle official msrcrypto distro in the source (solves some bugs, probably safer)
parent
84dac9fa39
commit
6b32698b3e
|
@ -26,7 +26,6 @@
|
||||||
"mobx": "^6.6.0",
|
"mobx": "^6.6.0",
|
||||||
"mobx-react-lite": "^3.4.0",
|
"mobx-react-lite": "^3.4.0",
|
||||||
"mobx-state-tree": "^5.1.5",
|
"mobx-state-tree": "^5.1.5",
|
||||||
"msrcrypto": "^1.5.8",
|
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
"react-native": "0.68.2",
|
"react-native": "0.68.2",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import {NativeModules} from 'react-native'
|
||||||
const {AppSecureRandomModule} = NativeModules
|
const {AppSecureRandomModule} = NativeModules
|
||||||
import {toByteArray} from 'base64-js'
|
import {toByteArray} from 'base64-js'
|
||||||
// @ts-ignore we dont have types for this -prf
|
// @ts-ignore we dont have types for this -prf
|
||||||
import crypto from 'msrcrypto'
|
import crypto from '../third-party/msrcrypto'
|
||||||
import '@zxing/text-encoding' // TextEncoder / TextDecoder
|
import '@zxing/text-encoding' // TextEncoder / TextDecoder
|
||||||
|
|
||||||
async function generateSecureRandom(bytes: number) {
|
async function generateSecureRandom(bytes: number) {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue