change iv size from 32 to 16

This commit is contained in:
ammarahm-ed
2020-01-10 18:48:38 +05:00
parent 208cc75318
commit 185636ebca

View File

@@ -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,