# Obfuscate entitlements — reference design (archived)

Frozen copy of the spike in `tmp/obfuscate_test/` (standalone demo APK + Linux tests).

**Canonical integration** lives in the main app:

- C: `ndk/obfuscate/`
- JNI: `ndk/jni/entitlements_jni.c`
- Java: `app/src/main/java/com/foxx/androidcast/entitlements/`
- Native library name: `androidcast_entitlements`

The per-account **key** (`uint64_t`) replaces wall-clock seed in production; encode/decode API unchanged at C level.
