UNPKG

node-aescrypt

Version:

A node implementation of the AES Crypt <https://www.aescrypt.com/> file encryption format.

13 lines (12 loc) 641 B
/// <reference types="node" /> import { Hmac } from 'crypto'; import { Readable, Writable } from 'stream'; export declare const NAME: any; export declare const VERSION: any; export declare const AESCRYPT_FILE_FORMAT_VERSION = 2; export declare type TransformCallback = (error?: Error, data?: Buffer) => void; export declare function getKey(iv: Buffer, password: string): Buffer; export declare function getHMAC(key: Buffer): Hmac; export declare function toStream(contents: Buffer | string): Readable; export declare type WithStreamCallback = (contents: Buffer) => void; export declare function withStream(cb: WithStreamCallback): Writable;