Chatto/src/main/frontend/chat/service/EncryptionService.ts
Rohan Sircar 3822e9fb3c Refactored frontend
Preparing for multi-module frontend package layout
2020-06-20 15:18:06 +05:30

7 lines
307 B
TypeScript

import { MessageCipherDTO } from "../dto/MessageCipherDTO";
export interface EncryptionService {
encrypt(passphrase: string, plainText: string): any;
decrypt(passphrase: string, cipher: MessageCipherDTO): string;
decryptAsPromise(passphrase: string, cipher: MessageCipherDTO): Promise<string>
}