Veil is an obfuscator for JAVA applications.

Developers

Social Media

Legal

Features


Each pass below makes decompiled code harder to read and deobfuscate. Turn on the ones your deployment needs in the workbench. Obfuscation is a design goal, not a guarantee.

Editions

Standard Browser Edition A free workbench on the Home page. The JAR file is obfuscated in your browser, nothing leaves the machine.
Veil Cloud Pipeline & CI/CD API Free and accountless. Create a token from your e-Mail at /token.jsp, then call POST /api/v1/protect with a Bearer token from GitHub Actions, GitLab CI or Gradle.

Passes

Every pass belongs to one of five groups. The workbench shows them in the same order.

Naming
Name Obfuscation The user picks what gets a new name: the packages, the classes, the fields, the methods and the annotations. The places that mention a class get the new name with it, so the program still finds its own members. The packages get new names as well, and the classes are spread over them, so that the JAR file does not show which classes were in a package together.
Access Reduction Members that the virtual machine does not reach by name are marked synthetic, including the members that another class of the JAR file calls.
Varargs Conversion Methods the program calls itself take their last parameter as an array, and every call site builds that array.
Parameter Type Widening Every integer parameter of an eligible method becomes a long, the method converts it back at entry, and every caller passes a long.
Method Parameter Changes The decryption key leaves the method body and travels as an extra argument.
Encryption
String Encryption Strings in the code, in constant fields and in concatenation recipes are stored encoded and decoded on demand. Annotations that the runtime does not show are dropped with their strings.
Constant Encryption Numeric constants become calculations that yield the original value at runtime.
Flow
Reference Obfuscation Calls and field reads resolve through a runtime lookup table, so call edges stay hidden.
Dynamic Invocation Calls route through bootstrap call sites that the machine builds at runtime.
Reflective Access Sensitive calls become runtime reflective lookups.
Flow Obfuscation Opaque predicates and dead jumps make the control flow hard to follow without changing behaviour.
Exception Obfuscation The throws lists, the handler tables and the thrown objects name a supertype, so a reader does not see which failure the program expects.
Exception Type Concealment Throwables of the program that are never caught get a new name and leave the throws lists.
Program Rebuild Classes merge into a few, methods merge and split, and values travel through fresh variables, so the shape of the original program is gone.
Metadata
Optimization Constant expressions fold before the other passes run.
Debug Info Removal The source file, the line and local variable tables, the parameter names and the generic signatures go.
Line Number Obfuscation Line number tables fill with offsets that lead nowhere.
Hardening
Failure Path Hardening A method whose failure the program does not inspect catches everything it throws and throws one general failure.
Resource Obfuscation Every resource and native library that the code names gets a new name and follows the class that reads it, and the manifest and the service files are rewritten with it.
Decoy Class Injection Up to 500 realistic decoy classes join the JAR file.
Filler Class Injection Up to 500 synthetic filler classes join the JAR file.
Integrity Checking The JAR file stops at startup when a class byte was changed.
Expiry The JAR file stops launching after the number of days you set.
Native Compilation Methods become native machine code and link through JNI, so no bytecode is left to read.