UNPKG

node-ciphers

Version:

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

34 lines 770 B
//#region src/types/options.d.ts 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; } declare namespace BaseCipherEncodingOptions { type Decrypt = Pick<BaseCipherEncodingOptions, 'decryptInput' | 'decryptOutput' | 'iv'>; type Encrypt = Pick<BaseCipherEncodingOptions, 'encryptInput' | 'encryptOutput' | 'iv'>; } //#endregion export { BaseCipherEncodingOptions }; //# sourceMappingURL=options.d.ts.map