Title: 'high-obfuscation' preset does not do 'split-strings' by default · Issue #1236 · javascript-obfuscator/javascript-obfuscator · GitHub
Open Graph Title: 'high-obfuscation' preset does not do 'split-strings' by default · Issue #1236 · javascript-obfuscator/javascript-obfuscator
X Title: 'high-obfuscation' preset does not do 'split-strings' by default · Issue #1236 · javascript-obfuscator/javascript-obfuscator
Description: Expected Behavior Judging by the docs and source code --split-strings true should be the default when using --options-preset high-obfuscation but it does not seem to work. It is expected that the high-obfuscation preset includes split-st...
Open Graph Description: Expected Behavior Judging by the docs and source code --split-strings true should be the default when using --options-preset high-obfuscation but it does not seem to work. It is expected that the h...
X Description: Expected Behavior Judging by the docs and source code --split-strings true should be the default when using --options-preset high-obfuscation but it does not seem to work. It is expected that the h...
Opengraph URL: https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1236
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'high-obfuscation' preset does not do 'split-strings' by default","articleBody":"## Expected Behavior\r\nJudging by the docs and source code `--split-strings true` should be the default when using `--options-preset high-obfuscation` but it does not seem to work. \r\n\r\nIt is expected that the `high-obfuscation` preset includes `split-string` by default. Source code seems to indicate exactly that but the tests disprove it.\r\n\r\n## Current Behavior\r\nRunning the two commands below yield significantly different file sizes (especially on a large file).\r\n\r\n- `./javascript-obfuscator --options-preset high-obfuscation file.js`\r\n- `./javascript-obfuscator --options-preset high-obfuscation --split-strings true file.js`\r\n\r\nLooking at the generated code here are the related bits, respectively.\r\n\r\n- `'This\\x20is\\x20a\\x20long\\x20string\\x20and\\x20it\\x20should\\x20really\\x20be\\x20split\\x20by\\x20the\\x20obfuscator!'`\r\n- `const _0x483d67 = a0_0x56a5, _0x3e020d = (_0x483d67(0x93) + 'long\\x20strin' + 'g\\x20and\\x20it\\x20s' + 'hould\\x20real' + _0x483d67(0x8a) + _0x483d67(0x94) + 'bfuscator!')[_0x483d67(0x91)][_0x483d67(0x8b)](_0x3e020d);`\r\n\r\n## Steps to Reproduce\r\n1. Use a `file.js` with a large enough string (sample file attached)\r\n2. Run the two commands above and note how the string gets split only in the 2nd run\r\n\r\n## Your Environment\r\n* Obfuscator version used: 4.1.0_2023-09-05T17:31:38.835Z\r\n* Node version used: v20.10.0\r\n\r\n[file.zip](https://github.com/javascript-obfuscator/javascript-obfuscator/files/14228845/file.zip)\r\n","author":{"url":"https://github.com/gunsh","@type":"Person","name":"gunsh"},"datePublished":"2024-02-10T10:15:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1236/javascript-obfuscator/issues/1236"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0970b0d4-b28d-e30f-0d51-78af13ccc434 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED6A:198F63:11C8F59:182371F:6A62DEA2 |
| html-safe-nonce | 52b4b2c7af8a5448ac2f3040d3fc92d5daded28b24bfb11b6d5524cbc0ef221d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDZBOjE5OEY2MzoxMUM4RjU5OjE4MjM3MUY6NkE2MkRFQTIiLCJ2aXNpdG9yX2lkIjoiNTM5NDg2NjIyNDIzNjc4MTIxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40c522c3e3e5b784999f84aa02c722a5dcc653f3c2912f585da43bed211720d4 |
| hovercard-subject-tag | issue:2128275850 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascript-obfuscator/javascript-obfuscator/1236/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c80555fcb2c6af25f5b139c97a31772929b19c26d3bf79190e113781eafebfc8/javascript-obfuscator/javascript-obfuscator/issues/1236 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c80555fcb2c6af25f5b139c97a31772929b19c26d3bf79190e113781eafebfc8/javascript-obfuscator/javascript-obfuscator/issues/1236 |
| og:image:alt | Expected Behavior Judging by the docs and source code --split-strings true should be the default when using --options-preset high-obfuscation but it does not seem to work. It is expected that the h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gunsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/javascript-obfuscator/javascript-obfuscator git https://github.com/javascript-obfuscator/javascript-obfuscator.git |
| octolytics-dimension-user_id | 23015672 |
| octolytics-dimension-user_login | javascript-obfuscator |
| octolytics-dimension-repository_id | 58360147 |
| octolytics-dimension-repository_nwo | javascript-obfuscator/javascript-obfuscator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58360147 |
| octolytics-dimension-repository_network_root_nwo | javascript-obfuscator/javascript-obfuscator |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width