From 185636ebca1b67465b27fc72b0ccec61aaa994bb Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Fri, 10 Jan 2020 18:48:38 +0500 Subject: [PATCH] change iv size from 32 to 16 --- apps/mobile/src/utils/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,