7 lines
307 B
TypeScript
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>
|
|
} |