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

[Question] Is there a way to prevent obfuscating only selected string literals using a prefix #117

Open
thilinah opened this issue Oct 20, 2023 · 3 comments

Comments

@thilinah
Copy link

thilinah commented Oct 20, 2023

Is there a way to prevent obfuscating only selected string literals using a prefix when obfuscate_string_literal option is selected?

@thilinah thilinah changed the title Is there a way to prevent obfuscating only selected string literals using a prefix [Question] Is there a way to prevent obfuscating only selected string literals using a prefix Oct 20, 2023
@KminekMatej
Copy link

Could you give an example of what are you trying to achieve?

@thilinah
Copy link
Author

thilinah commented Jan 3, 2024

There was a situation where I wanted to generally obfuscate string literals in code, except some strings, which can be identified by a prefix.

When obfuscate_string_literal is enabled, all the string literals will be obfuscated. I wanted to see if there is a way to skip some selected strings. This is because when only partially obfuscating a project, non-obfuscated code will need to refer to these selected strings.

Anyhow, I've realized this is not supported and already implemented for myself. But if anyone else thinks this is useful, please let me know and I'll open a PR.

@KminekMatej
Copy link

I think that this obfuscator doesnt support that at the time. I am currently making a huge refactoring with planned PR where ignoring can be (optionally) based on regex string, so that could perhaps solve your problem. I will let you know once the PR is ready

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

No branches or pull requests

2 participants