feat: the cache can be configured to be encrypted

This commit is contained in:
vben
2020-11-23 23:24:13 +08:00
parent 3a132f3f4f
commit 234c1d1fae
20 changed files with 300 additions and 185 deletions

View File

@@ -0,0 +1,13 @@
import { isDevMode } from '/@/utils/env';
// System default cache time, in seconds
export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;
// aes encryption key
export const cacheCipher = {
key: '_12345678901234@',
iv: '@12345678901234_',
};
// Whether the system cache is encrypted using aes
export const enableStorageEncryption = !isDevMode();