Web implementation of expo-crypto-universal
npm install expo-crypto-universal-webWeb implementation of expo-crypto-universal, providing cryptographic operations using the Web Crypto API.
- Random bytes generation using Web Crypto API
- Random bytes generation with specified size
``bash`
npm install expo-crypto-universal-web
`typescript
import { webCryptoModule } from 'expo-crypto-universal-web';
// Generate random bytes with specified size
const randomBytes = webCryptoModule.getRandomBytes(32);
// Fill array with random values using Web Crypto API
const filledArray = webCryptoModule.getRandomValues(new Uint8Array(32));
``
Generates cryptographically secure random bytes of the specified size.
Fills the provided Uint8Array with cryptographically secure random values using the Web Crypto API.
This implementation uses the Web Crypto API for random value generation, ensuring high security standards.
MIT