UNPKG

lss-mqtt

Version:

LSS-MQTT framework in NodeJS implementation"

15 lines (14 loc) 482 B
/// <reference types="node" /> import { HexBase64BinaryEncoding, Utf8AsciiBinaryEncoding } from "crypto"; export declare class Coder { private password; private textCoding; private cipherCoding; private readonly algorithm; private iv; private cipher; private decipher; constructor(password: string, textCoding?: Utf8AsciiBinaryEncoding, cipherCoding?: HexBase64BinaryEncoding); encode(data: string): string; decode(cipher: string): string; }