javascript-obfuscator / javascript-obfuscator/grunt-contrib-obfuscator

Add identifiers prefix generation

Open
#20 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
30
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Hi.
https://github.com/javascript-obfuscator/javascript-obfuscator/issues/568

It would be nice if you add a unique identifier names prefix generation for each obfuscated file.
The prefix should be as `aX`, where `X` - number or counter of the current obfuscated file (`0`, `1`, `2`, ...)

The prefix can be overridden by the user prefix.

I just implemented this logic for `webpack-obfuscator`, you can see example:
https://github.com/javascript-obfuscator/webpack-obfuscator/commit/2b227b27bc1e10c687ed656d25a9efb6d16f1a0f#diff-ed009b6b86b017532ef0489c77de5100

Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked javascript-obfuscator issue and the referenced webpack-obfuscator commit, then trace how this Grunt plugin passes options to the obfuscator. Confirm how a per-file prefix and a user-supplied prefix should interact, and verify the generated identifiers for multiple files and for an override.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.