You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added in 2.0 (Currently 2.0.0-alpha.2). Now simply converts the Regex literal to the RegExp constructor and is further protected by String Concealing / other obfuscations. The extra obfuscations are not planned for now.
Is your feature request related to a problem? Please describe.
Currently regexes are passed through unmodified.
Describe the solution you'd like
Regexes like
/ID\d{6}/g
should use some of the following obfuscation techniques:new RegExp
syntax (likenew RegExp("ID\\d{6}", "g")
) - where this transformation happens before string concealing etc\d
with[0-9]
or[0123456789]
or[4753102869]
or[91-80]
or(?:[0-4]|[5-9])
etc\d{3}{2}
or\d\d\d\d\d\d
No idea for useful static string transformations (like the
ID
part) yet.Describe alternatives you've considered
Manually replacing usages of
/.../
withnew RegExp("...")
to enjoy string concealment, however the latter is far more verbose.Additional context
See also https://docs.jscrambler.com/code-integrity/documentation/transformations/regex-obfuscation
The text was updated successfully, but these errors were encountered: