Skip to content

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

change iv size from 32 to 16

ammarahm-ed185636ebca1b
diff --git a/apps/mobile/src/utils/storage.js b/apps/mobile/src/utils/storage.js
index f585f3085..0c485b887 100644
--- a/apps/mobile/src/utils/storage.js
+++ b/apps/mobile/src/utils/storage.js
@@ -23,7 +23,7 @@ function encrypt(password, data) {
return Aes.pbkdf2('password', 'salt', 5000, 256).then(aes => {
key = aes;
- return Aes.randomKey(32).then(iv => {
+ return Aes.randomKey(16).then(iv => {
return Aes.encrypt(data, key, iv).then(cipher => ({
cipher,
iv,