2019-12-07 15:15:50 +00:00
|
|
|
import { MessageCipherDTO } from "../dto/MessageCipherDTO";
|
|
|
|
|
2019-12-06 14:21:07 +00:00
|
|
|
export interface EncryptionService {
|
2019-12-11 05:26:16 +00:00
|
|
|
encrypt(passphrase: string, plainText: string): any;
|
|
|
|
decrypt(passphrase: string, cipher: MessageCipherDTO): string;
|
2019-12-15 14:18:24 +00:00
|
|
|
decryptAsPromise(passphrase: string, cipher: MessageCipherDTO): Promise<string>
|
2019-12-06 14:21:07 +00:00
|
|
|
}
|