mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-20 19:18:31 +00:00
feat: the cache can be configured to be encrypted
This commit is contained in:
13
src/settings/encryptionSetting.ts
Normal file
13
src/settings/encryptionSetting.ts
Normal 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();
|
Reference in New Issue
Block a user