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