# orhanobut/hawk

✔️ Secure, simple key-value storage for Android

Repository: https://github.com/orhanobut/hawk
Canonical: https://ross.abutalabs.com/products/hawk
Language: Java
License: Apache-2.0
License Family: permissive
Topics: hawk, storage, android, key-value-store, encryption, security, sharedpreferences, preferences
Last push: 2022-07-10T10:09:05+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4213, "days_push": 1515, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3996, forks 397 (observed 2026-08-28T04:08:31.916040+00:00)

## What it is
Hawk is a secure, simple key-value storage library for Android that encrypts data before persisting it. It supports storing any object type with pluggable encryption, converter, parser, and storage layers.

## Use cases
- store encrypted user preferences in an android app
- persist objects securely instead of plain SharedPreferences
- save lists, maps, or custom objects to local storage on android
- cache session tokens securely on device
- replace SharedPreferences with an encrypted key-value store

## When to choose
- you need simple encrypted key-value persistence on Android
- you want to store arbitrary Java objects without writing serialization code
- you need pluggable storage or encryption layers

## When to avoid
- you need a maintained library with recent updates and active support
- you target modern Android with Jetpack DataStore or EncryptedSharedPreferences available
- you need multi-process or reactive storage access

## Facets
- artifact type: library
- maturity: maintenance
- function: cryptography, serialization, security
- domain: android-tools, security, developer-tools
- platform: -
- tags: key-value-store, sharedpreferences, encrypted-storage, java, persistence, android

## Member repositories
- orhanobut/hawk (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:31.916040+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-29T18:24:11.314981+00:00, confidence not recorded.
  - readme: https://github.com/orhanobut/hawk (fetched 2026-08-28T04:08:31.916040+00:00, sha 91480df3e4b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
