Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

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.js
index 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(