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) 362 B
import type { BinaryLike } from 'node:crypto'; import type { AesCipherEncodingOptions } from '../types'; import { BaseAesEncryptAndDecrypt } from './base/encrypt-and-decrypt'; export class Ofb extends BaseAesEncryptAndDecrypt { constructor(key: BinaryLike, encodingOptions?: AesCipherEncodingOptions) { super(key, 'ofb', encodingOptions); } }