strong-cryptor
Version:
Strong encryptor and decryptor nodejs
7 lines (6 loc) • 354 B
TypeScript
/// <reference types="node" />
import { IToBufferOptions } from './interface';
export declare type ErrorCode = 'MALFORMATED' | 'INVALID_SEPARATOR' | 'INVALID_KEY';
export declare type Encoding = 'base64' | 'hex';
export declare type BufferAndString<T extends IToBufferOptions> = T['toBuffer'] extends true ? Buffer : string;
export * from './interface';