@altcha/crypto
Version:
A lightweight library simplifying asymmetric data encryption using Web Crypto
5 lines (4 loc) • 316 B
TypeScript
/// <reference types="node" />
import { Readable, Writable } from 'node:stream';
export declare function encryptStream(publicKeyRSA: CryptoKey, input: Readable, output: Writable): Promise<unknown>;
export declare function decryptStream(privateKeyRSA: CryptoKey, input: Readable, output: Writable): Promise<unknown>;