encryptionSetting.ts 350 B

12345678910111213
  1. import { isDevMode } from '@/utils/env'
  2. // System default cache time, in seconds
  3. export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7 * 1000
  4. // aes encryption key
  5. export const cacheCipher = {
  6. key: '_11111000001111@',
  7. iv: '@11111000001111_'
  8. }
  9. // Whether the system cache is encrypted using aes
  10. export const enableStorageEncryption = !isDevMode()