node-ciphers
Version:
Lightweight AES and DES encryption library for Node.js, featuring flexible encoding, multiple cipher modes, and TypeScript support.
12 lines • 689 B
TypeScript
import type { BinaryLike, Cipher, Decipher } from 'node:crypto';
import type { TransformOptions } from 'node:stream';
import { BaseCipher } from '../../base';
import type { DesCipherAlgorithm, DesCipherEncodingOptions, DesCipherMode } from '../../types';
export declare abstract class BaseDesCipher extends BaseCipher {
#private;
constructor(key: BinaryLike, mode: DesCipherMode, encodingOptions?: DesCipherEncodingOptions);
get algorithm(): DesCipherAlgorithm;
protected createCipher(iv: BinaryLike | null, options?: TransformOptions): Cipher;
protected createDecipher(iv: BinaryLike | null, options?: TransformOptions): Decipher;
}
//# sourceMappingURL=index.d.ts.map