Native implementation of expo-crypto-universal
npm install expo-crypto-universal-nativeNative implementation of expo-crypto-universal, providing cryptographic operations using Expo's crypto module.
- Random values generation
``bash`
npm install expo-crypto-universal-native
`typescript
import { nativeCryptoModule } from 'expo-crypto-universal-native';
// Generate random bytes
const randomBytes = nativeCryptoModule.getRandomBytes(32);
// Fill array with random values
const filledArray = nativeCryptoModule.getRandomValues(new Uint8Array(32));
``
Generates a new Uint8Array of the specified size, filled with cryptographically secure random values.
Fills the provided Uint8Array with cryptographically secure random values.
This implementation uses Expo's crypto module for all cryptographic operations, ensuring high security standards.
MIT