Working on SEARCH-116 Implement Encryption and Decryption of Index

This commit is contained in:
Keerthi Niranjan 2017-08-10 14:30:04 +05:30 committed by Keerthi Niranjan
parent 7ac42f0f54
commit ebb50ae344

25
js/cryptoLib/index.js Normal file
View File

@ -0,0 +1,25 @@
'use strict';
const electron = require('electron');
const app = electron.app;
const path = require('path');
const isDevEnv = require('../utils/misc.js').isDevEnv;
const userData = path.join(app.getPath('userData'));
const INDEX_DATA_FOLDER = isDevEnv ? './data' : path.join(userData, 'data');
class Crypto {
constructor() {
this.indexDataFolder = INDEX_DATA_FOLDER;
}
encryption() {
console.log(this.indexDataFolder)
}
decryption() {
console.log(this.indexDataFolder)
}
}
module.exports = Crypto;