# scottyab/secure-preferences

Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.

Repository: https://github.com/scottyab/secure-preferences
Canonical: https://ross.abutalabs.com/products/secure-preferences
Language: Java
License Family: other
Topics: sharedpreferences, android, secure-preferences, obfuscated
Archived: true
Last push: 2020-06-22T13:31:28+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4808, "days_push": 2263, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1518, forks 230 (observed 2026-08-28T04:04:57.409091+00:00)

## What it is
An Android library that wraps SharedPreferences to encrypt stored values with AES-128/CBC and hash keys with SHA-256. It is deprecated in favor of androidx EncryptedSharedPreferences and has no active maintainers.

## Use cases
- encrypt android shared preferences values
- hide sensitive data in prefs xml file
- securely store user settings on android
- obfuscate keys and values in shared preferences
- add quick security win to android app storage
- store preferences encrypted with a user password

## When to choose
- maintaining a legacy Android app already using this library
- needing a drop-in SharedPreferences wrapper on very old Android versions where androidx.security is unavailable

## When to avoid
- starting a new Android project - use androidx.security EncryptedSharedPreferences instead
- needing strong protection against rooted devices, since the default key is stored in the prefs file
- requiring actively maintained or supported code

## Facets
- artifact type: library
- maturity: abandoned
- function: security, cryptography, serialization
- domain: android-tools, security, mobile-development
- platform: -
- tags: shared-preferences, encryption, deprecated, java, aes, android

## Member repositories
- scottyab/secure-preferences (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:57.409091+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:02.320068+00:00, confidence not recorded.
  - readme: https://github.com/scottyab/secure-preferences (fetched 2026-08-28T04:04:57.409091+00:00, sha 0930b7eede03)
- Data as of 2026-08-30T08:39:29.467469+00:00.
