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

  • Home
  • SEARCH
  • 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 8583757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:36:47+00:00 2026-06-11T21:36:47+00:00

AFAIK Android decompilation allows one to extract every bit of information from an apk.

  • 0

AFAIK Android decompilation allows one to extract every bit of information from an apk.
How can I store information like ftp passwords or other confidential strings in Java or any other XML file? Is there any way other than calling a service?

EDIT Problem:

String uname = "mks";
    String part1="pass";
    String part2="my";
    String part3="word";

As per David answer i obfuscating a string but after dcompilation i able to see my password

 String[] arrayOfString = new String[2]; arrayOfString[0] = "mks"; arrayOfString[1] = ("my" + "pass" + "word");
  • 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-11T21:36:48+00:00Added an answer on June 11, 2026 at 9:36 pm

    You’re talking about obfuscating a string here. One of the easiest ways to accomplish this is to split it up into multiple parts in your code, and then combine these together to make the final result. All your strings are still present, but they will be hard to put back together again.

    For example, if the password you’re trying to hide is “102938475601”, here’s one way to do it:

    // Declare the parts
    String part2 = "3847";
    String part1 = "1029";
    String part3 = "5601";
    
    // Log in to the server
    ftpServer.sendLogin("username", part1+part2+part3);
    

    This is a very simple form of obfuscation. If you’re more keen on protecting the data, you could try additional methods such as encrypting the password with a non-standard form of encryption, and splitting the key up as described above.

    But ultimately you’re correct – there’s no guaranteed way to package data in an Android app without it being accessible to anyone who decompiles the app. All you can do is make it harder for them to interpret whatever data they can find.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

AFAIK you can load one DataSet from another DataSet via IDataReader i.e. new DataSet().Load(existingDataSet.CreateDataReader());
AFAIK one of the objectives of Stack Overflow is to make sure anyone can
AFAIK, extern keyword should be used for declaration and no value can be associated
Afaik, you can change/manipulate browser settings in Mozilla/Netscape browsers. For Instance netscape.security.PrivilegeManager.enablePrivilege('someprivilege'); Of course
AFAIK when reducing an array we can only output once variable at the end
This question is about the public key that every .NET assembly has AFAIK (looking
I'd like to know if derivatives in glsl are working on GL_LINES primitives. AFAIK
AFAIK, we can have two static variables with the same name in different functions?
AFAIK, a thread can not access UI components. But I want to preload images
AFAIK, turing computable numbers are numbers whose i-th index can be returned by a

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.