UNPKG

node-ciphers

Version:

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

13 lines (11 loc) 319 B
import { getCiphers } from 'node:crypto'; export const availableCiphers: readonly string[] = getCiphers(); export const defaultEncodingOptions = { authTag: 'hex', decryptInput: 'hex', decryptOutput: 'utf-8', encryptInput: 'utf-8', encryptOutput: 'hex', iv: 'hex', key: 'utf-8', } as const;