Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8752535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:15:18+00:00 2026-06-13T13:15:18+00:00

Possible Duplicate: hiding strings in Obfuscated code I’m trying to hide a little some

  • 0

Possible Duplicate:
hiding strings in Obfuscated code

I’m trying to hide a little some static Strings of my app in order to make it harder to decompile, this way like the constants like cipher algorithms names are harder to find in the obfuscated code.

I’ve considered things like:

String CONCAT= "concat"+"string";
String RAW_STRING= "raw_string";
String FROM_BYTES=new String("from_bytes".getBytes());
String FROM_CHARS=new String(new char[]{'f','r','o','m','_','c','h','a','r','s'});
String FROM_CHAR2=new String(new char[]{102,114,111,109,95,99,104,97,114,115,95,50});

And the last two options seems to be “darker” than the raw option but I imagine there are better ways for doing this.

How can I improve this? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:15:20+00:00Added an answer on June 13, 2026 at 1:15 pm

    For one, you shouldn’t just write

    String FROM_CHAR2=new String(new char[]{102,114,111,109,95,99,104,97,114,115,95,50});
    

    It’s a dead give-away that the char array is actually a String.

    You can do a combination of the followings:

    1. put your “String” in an int[] array
    2. or even better, break your String into several int arrays
    3. calculate/manipulate the array’s values at various stage of the application, so its value will only become valid at a certain interval during a runtime, guaranteeing that it won’t be deciphered at a curious glance by decompiling your code
    4. passes the array(s) back and forth, through local variables, back to instance variables, etc, before finally converting the arrays to a single array to be passed to the String constructor
    5. immediately set the String to null after use, just to reduce the amount of time the actual String exist at runtime
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Make uitextfield password obscured I have a app that takes in a
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: Hiding instance variables of a class I have below class AbstractTest public
Possible Duplicate: Hiding textarea resize handle in Safari in textarea input the user can
Possible Duplicate: Make Tkinter jump to the front I am seeking a solution to
Possible Duplicate: How do I hide a process in Task Manager in C#? i
Possible Duplicate: Abstraction VS Information Hiding VS Encapsulation The definitions of abstraction and encapsulation
Possible Duplicate: iPhone Documents directory and UIFileSharingEnabled, hiding certain documents I want the user
Possible Duplicate: How to hide ajax requests from firebug console? I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.