Skip to content

Commit

Permalink
Update extension to .dbolt
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Mar 18, 2020
1 parent eba8e14 commit 0c6024d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const path = require("path");
const url = require("url");
const isDev = require("electron-is-dev");

const encryptedExtension = ".qlock";
const encryptedExtension = ".dbolt";

/*********************
* File System Helpers
Expand Down Expand Up @@ -142,7 +142,7 @@ function decryptFile(filePath, decryptionKey) {
let salt, initializationVector, authTag;
var decryptedFilePath = replaceLast(filePath, encryptedExtension, "");
let splitPath = decryptedFilePath.split(".");
splitPath.splice(splitPath.length - 1, 0, "qlock");
splitPath.splice(splitPath.length - 1, 0, "dbolt");
decryptedFilePath = splitPath.join(".");

const readMetadata = fs.createReadStream(filePath, { end: METADATA_LEN });
Expand Down

0 comments on commit 0c6024d

Please sign in to comment.