Skip to content

Custom Gradle Plugin that extends AGP and add obfuscation for constant strings at Java bytecode level

License

Notifications You must be signed in to change notification settings

apriorit/simple-string-obfuscation

Repository files navigation

Simple strings obfuscation

This repository contains a sample application and a Gradle plugin that allows to obfuscate constant strings in the Android application.

For each character of the string, two random numbers addKey and mulKey are generated and obfuscation occurs according to the formula:

((char + addKey) % 256 * mulKey % 256) % 256;

Obfuscation is added automatically during application build.

WARNING. This obfuscation is applied only to strings that are loaded onto the stack via the LDC command and can be easily bypassed without additional protection mechanisms by tools such as Frida.

About

Custom Gradle Plugin that extends AGP and add obfuscation for constant strings at Java bytecode level

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published