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 8612685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:41:19+00:00 2026-06-12T04:41:19+00:00

I have a few SharedPreferences that I would like to save on the device

  • 0

I have a few SharedPreferences that I would like to save on the device itself as securely as possible. I know nothing about security but I found from a bit of research that what I want is something called an “obfuscator”. Is that right? Is that different from “encryption”, or do I want to do both? I’ve also found that I can use AESObfuscator or ProGuard. What are the differences? Are there even more options? Which should I use?

I’m obviously very new to security so any tutorials or other references would be helpful.

  • 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-12T04:41:21+00:00Added an answer on June 12, 2026 at 4:41 am

    The linked AESObfuscator encrypts strings with a static key, so that they can be saved to shared prefs and it is not immediately obvious what they are. This is different from a code obfuscator such as ProGuard, which mangles method and variable names in your code to make it harder to reverse-engineer. It is called ‘obfuscation’ and not ‘encryptoin’ because the key is in the app, and it is fairly easy to reverse (by extracting the key and decrypting). Shared prefs obfuscation will make it harder to read and modify the strings, but not impossible. If you are OK with that level of protection, do use this method. Using code obfuscation is also a good idea, so you’d want to use both.

    The only supported way to make it ‘impossible’ to decrypt the strings is to have the user enter a password each time they use the app and derive the encryption key from it. This works, but is, needless to say, not very user friendly. If you are interested, here are some details.

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

Sidebar

Related Questions

I have few questions about ssis transction isolation levels. consider a scenario:I have an
i have few confusion regarding ORM(Object Relational Mapping) i am thinking about to use
I have few text fields like SSN , phone number and email id. I
I have few pages that I show from my main page inside iframe .
I have few pairs of button & check box like on my pages (the
i have few variables like this: self.lamp_1 self.lamp_2 self.lamp_3 self.lamp_4 and now i want
I have few textviews and it looks like this now: ramdomName 10.20 - 11.30
For a few days, I have been trying to get the username to save
I have few PC's that run on slow Internet connection network + they use
I have few classes that I need to annotate with a name so I

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.