From ed4adf21f408d6abd733cc949bba23f30937881c Mon Sep 17 00:00:00 2001 From: Jiiks Date: Sat, 11 Aug 2018 04:31:57 +0300 Subject: [PATCH] Maybe encrypt instead --- client/src/modules/security.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/modules/security.js b/client/src/modules/security.js index 773b2c29..3e90b214 100644 --- a/client/src/modules/security.js +++ b/client/src/modules/security.js @@ -13,7 +13,7 @@ import aes256 from 'aes256'; export default class Security { static encrypt(key, content, prefix = '') { - if (key instanceof Array) return this.deepDecrypt(key, content, prefix); + if (key instanceof Array) return this.deepEncrypt(key, content, prefix); return `${prefix}${aes256.encrypt(key, content)}`; }