yGuard | The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming expert | Plugin library
kandi X-RAY | yGuard Summary
kandi X-RAY | yGuard Summary
yGuard is an open-source Java obfuscation tool. With yGuard it is easy as pie () to configure obfuscation through an extensive ant task. yGuard is brought to you by yWorks GmbH, creator of the family of graph and diagram visualization frameworks yFiles and other fine products.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Remap all the attributes from the class mapper .
- Recursively re -aps the contents of the class files and their contents .
- Executes the YGuard .
- Shows a JTree .
- Creates the entry list .
- Checks if a method is an entry point method .
- Resolve this object .
- Create an edge between the class and the target method .
- Recursively walk the graph .
- Checks if the pattern is match .
yGuard Key Features
yGuard Examples and Code Snippets
Community Discussions
Trending Discussions on yGuard
QUESTION
I found out that an executable jar file can be decompiled to retrieve the original source code using Java Decompiler, which allows decompiling and browsing the source with the JD-GUI.
I'm trying to obfuscate a jar file to protect it from retrieving the original source code.
I have tried proguard but sounds a little bit time consuming!! I then tried IntelliGuard 2 plugin but there was no information about what proguard and yguard and how to use them!!
I read some resources that I need to generate an Ant build file for proguard or yguard to be able to obfuscate the jar file. Then I stuck a little bit on generating a jar file to obfuscate.
Is there an easy and straightforward way to generate a jar and obfuscate it?
...ANSWER
Answered 2021-Mar-25 at 14:42I have been trying to obfuscate a jar file to protect it from retrieving the original source code.
Obfuscation in Intellij requires IntelliGuard 2 plugin and yuguard 3.0.0 (preferably yguard-bundle-3.0.0.zip).
The obfuscation process :
Generate Module out of the project: File --> project settings --> Modules ( + new module and set proper out path)
Generate jar file using Artifacts: File --> project settings --> Artifacts ( + JAR and naming configuration)
Obfuscate the jar file: File --> project settings --> Facets( + Obfuscation ), then choose the path to ygurad-bundle/lib/yuguard.jar, and choose the main class. See illustrating image below:
Afterward, build Artifacts (build--> build Artifacts), then Obfuscate the jar file ( build--> obfuscate jar, then choose the input jar and the output obfuscated jar).
I couldn't find another way or resource to follow and do it the easy way, so I decided to share my experience.
QUESTION
My project obfuscates Java code in Gradle using yGuard.
I have a package of classes and enums that are being serialized with Gson.
Each enum value has a @SerializedName
annotation, like:
ANSWER
Answered 2021-Jan-12 at 11:47Try to filter by the class name com.package.whatever.Enum1
and fields: 'friendly'
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yGuard
You can use yGuard like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the yGuard component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page