Encrypting Sensitive strings.xml Values In Android Apps

The soft belly of any application are the strings and resources that can be easily understood from the application without using specialized tools, for example phrases, URLs, tokens, passwords etc. Unlike the java strings and the assets folder which are encrypted by Appdome Strings and Resources encryption, the string resources, usually under strings.xml file, can’t be encrypted on the device because the OS needs to access it. This KB articles discusses how Encrypting Sensitive strings.xml Values In Android Apps helps developers protect and encrypt XML values.

To provide our customers overall security protection of their Android app, Appdome’s XMLEncrypt™ service encrypts the sensitive strings stored in the localizable locations in Android. Now you can easily enhance the security of your app against malicious attempts to read the app’s content.

We hope you find it useful and enjoy using Appdome!

About Encrypting Sensitive Strings.xml Values In Android Apps

In Android apps, the strings.xml is often used by the OS (i.e. to show the application display name and to hold the localizable String resources). Additionally, it is common for mobile app developers to store all the app strings including sensitive data and values inside this folder. Since the strings.xml file can’t be encrypted as a whole, Appdome’s XMLEncryptTM   provides a way for customers to encrypt all the sensitive strings in the strings.xml folder that are not used in the app manifest or by the OS.

As seen in the screenshot below the XMLEncryptTM service replaces the sensitive strings with XXXX. Strings from the android support library and other google public libraries will not be encrypted.

Appdome is a mobile integration platform as a service (iPaaS) that allows users to add a wide variety of features, SDKs, and APIs to Android and iOS apps. Using a simple ‘click to add’ user interface, Appdome allows anyone to easily integrate strings, resources, and in-App preferences encryption to any mobile app – instantly, no code or coding required.

Using Appdome, there are no development or coding prerequisites. For example, there is no Appdome SDK, libraries, or plug-ins to implement. The Appdome technology adds strings and resources encryption alongside relevant standards, frameworks and more to the app automatically, with no manual development work at all.

Prerequisites for Using XMLEncryptTM

In order to use Appdome’s no code implementation of XMLEncryptTM, you’ll need:

How to Add XMLEncryptTM Encryption to Any Mobile App on Appdome

Follow these step-by-step instructions to add XMLEncryptTM to any mobile app:

Upload a Mobile App to Your Account

It is very easy to Encrypting Sensitive strings.xml Values In Android Apps
Please follow these steps to add a mobile app to your Appdome account.
If you don’t have an Appdome account, click here to create an account.

From the Build tab, add XMLEncryptTM to the App

  1. Click the Build tab.
  2. In the top menu, select Security.
  3. Expand TOTALDataTM Encryption.
  4. Switch on XMLEncryptTM.
  5. Click Build My App.


After Adding XMLEncryptTM Encryption to a Mobile App 

After Encrypting Sensitive strings.xml Values In Android Apps, there are a few additional steps needed to complete your mobile integration project.

Add Context™ to the Appdome Built App

Appdome is a full-featured mobile integration platform. Within Context™, Appdome users can brand the app, including adding a favicon to denote the new service added to the app.

For more information on the range of options available in Context™, please read this knowledge base article.

Sign the Appdome Built App (Required)

In order to deploy an Appdome Built app, it must be signed. Signing an iOS app and Signing an Android app is easy using Appdome. Alternatively, you can use Private Signing, download your unsigned app and sign locally using your own signing methods.

Deploy the App to a Mobile Device

Once you have signed your app, you can download it to deploy it using your distribution method of choice. For more information on deploying your apps, please read this knowledge base.

That is it – Enjoy Appdome’s XMLEncrypt solution in your app!

How Do I Learn More?

Check out Appdome’s TOTALData Encryption or request a demo at any time.

If you have any questions, please send them our way at support@appdome.com or via the chat window on the Appdome platform.

Thank you!

Thanks for visiting Appdome! Our mission is to make mobile integration easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.

Gil Hartman

Have a question?

Ask an expert

EvgenyMaking your security project a success!