HighObfuscation.ts 748 B

123456789101112131415161718192021
  1. import { TInputOptions } from '../../types/options/TInputOptions';
  2. import { OptionsPreset } from '../../enums/options/presets/OptionsPreset';
  3. import { StringArrayEncoding } from '../../enums/StringArrayEncoding';
  4. import { MEDIUM_OBFUSCATION_PRESET } from './MediumObfuscation';
  5. export const HIGH_OBFUSCATION_PRESET: TInputOptions = Object.freeze({
  6. ...MEDIUM_OBFUSCATION_PRESET,
  7. controlFlowFlatteningThreshold: 1,
  8. deadCodeInjectionThreshold: 1,
  9. debugProtection: true,
  10. debugProtectionInterval: true,
  11. optionsPreset: OptionsPreset.HighObfuscation,
  12. splitStringsChunkLength: 5,
  13. stringArrayEncoding: [
  14. StringArrayEncoding.Rc4
  15. ],
  16. stringArrayIntermediateVariablesCount: 10,
  17. stringArrayThreshold: 1
  18. });