Maybe encrypt instead

This commit is contained in:
Jiiks 2018-08-11 04:31:57 +03:00
parent a8f0e239cf
commit ed4adf21f4
1 changed files with 1 additions and 1 deletions

View File

@ -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)}`;
}