Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add note about keychain

Manav Rathi6efbaacdd1d2
diff --git a/desktop/src/main/services/dir.ts b/desktop/src/main/services/dir.ts
index 1106ae399d..293a720f01 100644
--- a/desktop/src/main/services/dir.ts
+++ b/desktop/src/main/services/dir.ts
@@ -72,7 +72,6 @@ export const openLogDirectory = () => openDirectory(logDirectoryPath());
* - macOS: ~/Library/Logs/Electron/ente.log (dev)
*
* https://www.electronjs.org/docs/latest/api/app
- *
*/
const logDirectoryPath = () => app.getPath("logs");
diff --git a/desktop/src/main/services/store.ts b/desktop/src/main/services/store.ts
index 20cc91ea4d..471928d76c 100644
--- a/desktop/src/main/services/store.ts
+++ b/desktop/src/main/services/store.ts
@@ -14,6 +14,15 @@ export const clearStores = () => {
watchStore.clear();
};
+/**
+ * [Note: Safe storage keys]
+ *
+ * On macOS, `safeStorage` stores our data under a Keychain entry named
+ * "<app-name> Safe Storage". Which resolves to:
+ *
+ * - Electron Safe Storage (dev)
+ * - ente Safe Storage (prod)
+ */
export const saveEncryptionKey = (encryptionKey: string) => {
const encryptedKey = safeStorage.encryptString(encryptionKey);
const b64EncryptedKey = Buffer.from(encryptedKey).toString("base64");