UNPKG

react-native-quick-crypto

Version:

A fast implementation of Node's `crypto` module written in C/C++ JSI

11 lines (9 loc) 402 B
import type { HybridObject } from 'react-native-nitro-modules'; export interface Hash extends HybridObject<{ ios: 'c++'; android: 'c++' }> { createHash(algorithm: string, outputLength?: number): void; update(data: ArrayBuffer | string): void; digest(encoding?: string): ArrayBuffer; copy(outputLength?: number): Hash; getSupportedHashAlgorithms(): string[]; getOpenSSLVersion(): string; }