SEARCH-154 & SEARCH-116

1. Getting the key and the userId from the client app
2. Creating a encrypted file as soon as the batch indexes are merged
3. Deleting the data folder when the quits
4. Few changes in the encryption and decryption
This commit is contained in:
Keerthi Niranjan
2017-08-28 12:13:58 +05:30
committed by Keerthi Niranjan
parent 8d73e930ed
commit c8b45e091e
4 changed files with 74 additions and 76 deletions

View File

@@ -92,23 +92,8 @@ app.on('activate', function () {
app.on('will-quit', function (e) {
e.preventDefault();
/**
* This is for demo purpose only
* will be removing this after implementing
* in client-app
*/
// Will be handling this in SEARCH-206
let key = "XrwVgWR4czB1a9scwvgRUNbXiN3W0oWq7oUBenyq7bo="; // temporary only
crypto.encryption(key)
.then(function () {
// will be handling after implementing in client app
app.exit();
})
.catch(function () {
// will be handling after implementing client app
app.exit();
});
crypto.deleteFolders();
app.exit();
});
// adds 'symphony' as a protocol