MediumObfuscation.ts 730 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 { LOW_OBFUSCATION_PRESET } from './LowObfuscation';
  5. export const MEDIUM_OBFUSCATION_PRESET: TInputOptions = Object.freeze({
  6. ...LOW_OBFUSCATION_PRESET,
  7. controlFlowFlattening: true,
  8. deadCodeInjection: true,
  9. numbersToExpressions: true,
  10. optionsPreset: OptionsPreset.MediumObfuscation,
  11. splitStrings: true,
  12. splitStringsChunkLength: 10,
  13. stringArrayEncoding: [
  14. StringArrayEncoding.Base64
  15. ],
  16. stringArrayIntermediateVariablesCount: 5,
  17. transformObjectKeys: true
  18. });