UNPKG

node-ciphers

Version:

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

38 lines (31 loc) 771 B
export interface BaseCipherEncodingOptions { /** * @default 'hex' */ decryptInput?: BufferEncoding; /** * @default 'utf-8' */ decryptOutput?: BufferEncoding; /** * @default 'utf-8' */ encryptInput?: BufferEncoding; /** * @default 'hex' */ encryptOutput?: BufferEncoding; /** * @default 'hex' */ iv?: BufferEncoding; /** * @default 'utf-8' */ key?: BufferEncoding; } // eslint-disable-next-line ts/no-namespace export namespace BaseCipherEncodingOptions { export type Decrypt = Pick<BaseCipherEncodingOptions, 'decryptInput' | 'decryptOutput' | 'iv'>; export type Encrypt = Pick<BaseCipherEncodingOptions, 'encryptInput' | 'encryptOutput' | 'iv'>; }