UNPKG

node-ciphers

Version:

Lightweight AES and DES encryption library for Node.js, featuring flexible encoding, multiple cipher modes, and TypeScript support.

19 lines (18 loc) 1.15 kB
import { BaseCipherEncodingOptions } from "../../../types/options.js"; import { DesCipherMode } from "../../../types/des.js"; import "../../../types/index.js"; import { BaseCipher } from "../../../_internals/base-cipher.js"; import * as node_crypto0 from "node:crypto"; import { BinaryLike } from "node:crypto"; import { TransformOptions } from "node:stream"; //#region src/des/_internals/base/index.d.ts declare abstract class BaseDesCipher extends BaseCipher { #private; constructor(key: BinaryLike, mode: DesCipherMode, encodingOptions?: BaseCipherEncodingOptions); 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): node_crypto0.Cipheriv; protected createDecipher(iv: BinaryLike | null, options?: TransformOptions): node_crypto0.Decipheriv; } //#endregion export { BaseDesCipher }; //# sourceMappingURL=index.d.ts.map