UNPKG

node-ciphers

Version:

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

8 lines (6 loc) 321 B
export type * from './aes'; export type * from './des'; export type * from './options'; export type BaseEncryptResult = Result<{ data: string; iv: string }>; export type EcbEncryptResult = Result<{ data: string; iv: null }>; export type Result<T> = { error: unknown; ok: false; value?: never } | { ok: true; value: T };