UNPKG

node-ciphers

Version:

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

16 lines 831 B
import type { Except } from 'type-fest'; import type { BaseCipherEncodingOptions } from './options'; export type { BaseCipherEncodingOptions as AesCipherEncodingOptions } from './options'; export type AesCipherAlgorithm = `aes-${128 | 192 | 256}-${AesCipherMode}`; export type AesCipherMode = 'cbc' | 'ccm' | 'cfb1' | 'cfb8' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ofb'; export interface HasAuthTagAesCipherEncodingOptions extends BaseCipherEncodingOptions { /** * @default 'hex' */ authTag?: BufferEncoding; } export declare namespace HasAuthTagAesCipherEncodingOptions { type Decrypt = Except<HasAuthTagAesCipherEncodingOptions, 'encryptInput' | 'encryptOutput' | 'key'>; type Encrypt = Except<HasAuthTagAesCipherEncodingOptions, 'decryptInput' | 'decryptOutput' | 'key'>; } //# sourceMappingURL=aes.d.ts.map