Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Text Encryption #139

Open
reg499 opened this issue Sep 2, 2024 · 2 comments
Open

Dynamic Text Encryption #139

reg499 opened this issue Sep 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@reg499
Copy link

reg499 commented Sep 2, 2024

Hi,

I would like to request a new feature for the Js-Confuser library. While the library is highly effective in code obfuscation, I would like to suggest an additional feature that would further enhance text protection.

Specifically, I propose adding a feature that dynamically encrypts static text and then decrypts it during runtime. This could involve methods such as encoding text into ASCII values or other similar techniques. The goal would be to make the text more complex and unreadable within the code, preventing direct understanding of sensitive information.

Example:

// Input
function print(x){
  console.log(x);
}

print("Hello World");

// Output
function decodeMessage(encoded) {
return String.fromCharCode(...encoded);
}

function print(x){
  console.log(x);
}

const encodedMessage = [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]; // ASCII values
print(decodeMessage(encodedMessage));

This feature would be particularly beneficial for developers looking to protect sensitive text. The encryption and decryption process could be implemented as an additional function or integrated with existing obfuscation techniques.

I hope you will consider this request and evaluate the possibility of including this feature in future updates.

Thank you,

@reg499 reg499 added the enhancement New feature or request label Sep 2, 2024
@doctor8296
Copy link

I think this obfuscator already does this

@MichaelXF
Copy link
Owner

String Concealing is the option you're looking for. In the 2.0 rewrite (which is coming soon), you'll be able to customize the string encoding functions to your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants