# MegatronKing/StringFog

一款自动对字节码中的字符串进行加密Android插件工具

Repository: https://github.com/MegatronKing/StringFog
Canonical: https://ross.abutalabs.com/products/stringfog
Language: Java
License: Apache-2.0
License Family: permissive
Topics: dex, encrypt, android, gradle
Last push: 2024-07-09T13:21:10+00:00

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

## Adoption (not part of the score)
Stars 2014, forks 405 (observed 2026-08-28T04:06:05.405956+00:00)

## What it is
StringFog is a Gradle plugin for Android that automatically encrypts string literals in compiled bytecode (dex/aar/jar) at build time and decrypts them at runtime. It supports Java and Kotlin, pluggable encryption algorithms, and works alongside ProGuard obfuscation.

## Use cases
- hide hardcoded strings in my android apk from reverse engineering
- encrypt string literals in dex bytecode automatically at build time
- protect api keys and secrets embedded in android app code
- apply string encryption to aar and jar library files
- use a custom encryption algorithm for android string obfuscation
- integrate string obfuscation into my gradle build for android

## When to choose
- you ship an Android app or library and want to deter static analysis of embedded strings
- you want fully automated, Gradle-integrated string encryption with no source changes
- you need pluggable encryption implementations and per-package encryption scope

## When to avoid
- you need strong cryptographic protection of secrets at runtime (decryption key ships in the app)
- you rely on InstantRun or AGP setups without BuildConfig
- you are not building for Android/JVM bytecode

## Facets
- artifact type: plugin
- maturity: maintenance
- function: security, cryptography, build-tool, compiler
- domain: android-tools, security, developer-tools, mobile-development
- platform: jvm
- tags: bytecode-obfuscation, string-encryption, gradle-plugin, dex, apk-hardening, reverse-engineering-protection, android, gradle

## Member repositories
- MegatronKing/StringFog (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:05.405956+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-30T03:00:49.105720+00:00, confidence not recorded.
  - readme: https://github.com/MegatronKing/StringFog (fetched 2026-08-28T04:06:05.405956+00:00, sha 5a7fe2eeb92d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
