UNPKG

@bakesaled/cement

Version:

A library that encrypts and decrypt files or strings.

14 lines (13 loc) 517 B
/// <reference types="node" /> import { Transform } from 'stream'; import { CryptoService } from './crypto.service'; export declare class DecryptTransform extends Transform { private cryptoService; prev: any; header: any; constructor(cryptoService: CryptoService, options?: any); _transform(chunk: any, encoding: string, callback: (error?: Error | null) => void): void; _flush(callback: (error?: Error | null) => void): void; private extractHeader; private extractBody; }