@expass/node
Version:
A modern and secure password hashing/encryption library for node
12 lines (11 loc) • 461 B
TypeScript
import { CipherInterface, interfaces } from '@expass/core';
type CipherAlgorithm = interfaces.CipherAlgorithm;
export declare class NodeCipher<A extends CipherAlgorithm> implements CipherInterface<A> {
protected readonly _algorithm: A;
constructor(_algorithm: A);
get algorithm(): A;
get cbcAlgorithm(): string;
encrypt(data: Buffer, key: Buffer, iv: Buffer): Buffer;
decrypt(data: Buffer, key: Buffer, iv: Buffer): Buffer;
}
export {};