mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-20 21:43:11 -06:00
25 lines
550 B
JavaScript
25 lines
550 B
JavaScript
'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; |