Skip to content

[Idea] Single letter string literal obfuscation #694

@da411d

Description

@da411d

Sometimes code may contain one-char string literals. My idea to obfuscate it with String.fromCharCode

Example input:

const justRandomExample = "[" + someVariable + "]";

Output:

const justRandomExample = String.fromCharCode(91) + someVariable + String.fromCharCode(93);

It may be useful when the code generates some token or query params, with this feature it may be harder to notice the place in code.
For example, in my project there is a key map for one of key features - fake events generator. When someone notice that it is that keymap - he will know that other events code is nearby.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions