mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Working on SEARCH-116 Implement Encryption and Decryption of Index
This commit is contained in:
parent
7ac42f0f54
commit
ebb50ae344
25
js/cryptoLib/index.js
Normal file
25
js/cryptoLib/index.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user