UNPKG

378 BTypeScriptView Raw
1declare type TConfig = {
2 cipherAlgo: string;
3 digestAlgo: string;
4 encoding: 'utf8';
5};
6export default class Cipher {
7 private readonly key;
8 private readonly config;
9 constructor(key: string, config?: TConfig);
10 encrypt: (message: string) => string;
11 decrypt: (encryptedMessage: string) => string;
12 digest: (message: string) => string;
13}
14export {};