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) • 362 B
text/typescript
import type { BinaryLike } from 'node:crypto';
import type { DesCipherEncodingOptions } from '../types';
import { BaseDesEncryptAndDecrypt } from './base/encrypt-and-decrypt';
export class Cbc extends BaseDesEncryptAndDecrypt {
constructor(key: BinaryLike, encodingOptions?: DesCipherEncodingOptions) {
super(key, 'cbc', encodingOptions);
}
}