UNPKG

node-ciphers

Version:

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

12 lines (8 loc) 372 B
import type { BinaryLike } from 'node:crypto'; import type { AesCipherEncodingOptions } from '@/types'; import { BaseAesEncryptAndDecrypt } from './_internals/base/encrypt-and-decrypt'; export class Cbc extends BaseAesEncryptAndDecrypt { constructor(key: BinaryLike, encodingOptions?: AesCipherEncodingOptions) { super(key, 'cbc', encodingOptions); } }