A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
crypto: do not check if data is not an object
thecodrr110e22ea5756
diff --git a/apps/web/src/interfaces/crypto.js b/apps/web/src/interfaces/crypto.jsindex bfb4ce6e9..3b3569ed9 100644--- a/apps/web/src/interfaces/crypto.js+++ b/apps/web/src/interfaces/crypto.js@@ -58,8 +58,6 @@ class Crypto {encrypt = async (passwordOrKey, data) => {await this._initialize();- if (typeof data === "object") data = JSON.stringify(data);-const { key, salt } = await this._getKey(passwordOrKey);const nonce = this.sodium.randombytes_buf(