Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 29, 2024
1 parent e8ce6a0 commit 71840dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/electron/frontend/core/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const testDataFolderPath = joinPath(appDirectory, ...paths.subfolders.tes
// Encryption
const IV_LENGTH = 16;
const KEY_LENGTH = 32;
export const ENCRYPTION_KEY = isElectron ? Buffer.concat([Buffer.from(appDirectory), Buffer.alloc(KEY_LENGTH)], KEY_LENGTH) : ""
export const ENCRYPTION_KEY = isElectron
? Buffer.concat([Buffer.from(appDirectory), Buffer.alloc(KEY_LENGTH)], KEY_LENGTH)
: "";

export const ENCRYPTION_IV = isElectron ? crypto.randomBytes(IV_LENGTH) : "";

Expand Down

0 comments on commit 71840dd

Please sign in to comment.