MediumObfuscation.ts 668 B

123456789101112131415161718
  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: StringArrayEncoding.Base64,
  14. transformObjectKeys: true
  15. });