Skip to content

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

fix note encrypting

ammarahm-edbd2380ce56a4
diff --git a/apps/mobile/src/utils/storage.js b/apps/mobile/src/utils/storage.js
index 5b526ba58..f32fa926d 100644
--- a/apps/mobile/src/utils/storage.js
+++ b/apps/mobile/src/utils/storage.js
@@ -41,7 +41,7 @@ function clear() {
function encrypt(password, data) {
let key;
- return Aes.pbkdf2('password', 'salt', 5000, 256).then(aes => {
+ return Aes.pbkdf2(password, 'salt', 5000, 256).then(aes => {
key = aes;
return Aes.randomKey(16).then(iv => {
return Aes.encrypt(data, key, iv).then(cipher => {