node-ciphers
Version:
Lightweight AES and DES encryption library for Node.js, featuring flexible encoding, multiple cipher modes, and TypeScript support.
31 lines • 752 B
TypeScript
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;
}
export declare namespace BaseCipherEncodingOptions {
type Decrypt = Pick<BaseCipherEncodingOptions, 'decryptInput' | 'decryptOutput' | 'iv'>;
type Encrypt = Pick<BaseCipherEncodingOptions, 'encryptInput' | 'encryptOutput' | 'iv'>;
}
//# sourceMappingURL=options.d.ts.map