expo-crypto-universal-web
Version:
Web implementation of expo-crypto-universal
19 lines (15 loc) • 668 B
TypeScript
import { AbstractCryptoModule } from 'expo-crypto-universal';
/**
* A module that provides cryptographic operations using the Web Crypto API.
* This implementation is compatible with both browser and Node.js environments.
*/
export declare class WebCryptoModule extends AbstractCryptoModule {
/**
* Fills the provided Uint8Array with cryptographically strong random values.
* @param array - The Uint8Array to fill with random values.
* @returns The same Uint8Array, filled with random values.
*/
getRandomValues: (array: Uint8Array) => Uint8Array;
}
export declare const webCryptoModule: WebCryptoModule;
export { }