Bundle official msrcrypto distro in the source (solves some bugs, probably safer)

This commit is contained in:
Paul Frazee 2022-07-19 14:40:06 -05:00
parent 84dac9fa39
commit 6b32698b3e
3 changed files with 10145 additions and 2 deletions

View file

@ -2,7 +2,7 @@ import {NativeModules} from 'react-native'
const {AppSecureRandomModule} = NativeModules
import {toByteArray} from 'base64-js'
// @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
async function generateSecureRandom(bytes: number) {