obfuscation

Hide password on desktop application code

橙三吉。 提交于 2019-12-12 01:28:31
问题 I have a desktop application developed in C#.NET, with an encrypted database. The encryption password is hard coded in the application code. How can I hide this password, since the code can be accessed through a .net disassembler? Maybe obfuscate the code could be a solution, but how do I create a setup for the application with the obfuscated code, because every time I rebuild the setup, a brand new .exe is created and the code is never obfuscated. I hope someone knows how to get around this.

Minify Code - Java

早过忘川 提交于 2019-12-12 00:40:07
问题 I was wondering if there is any tool to optimize/minify my Java Code. I already found out about some Obfuscators (http://java-source.net/open-source/obfuscators), but I'm not sure if this is what I want, because I actually want still "readable" Java FIles, but having it minified in sence of e.g. creating methods for code thats duplicated, just make the code better. Is there any tool that can do that? 回答1: There are toools that reformat your code, point out not-so-obvious mistakes or use

How to check obfuscation results of flutter app?

放肆的年华 提交于 2019-12-11 16:51:38
问题 In native android development I could check whether my minifyEnabled had taken effect. I used this script (in linux) which allows me to extract the apk and view the java files to see if my code is readable, or has been obfuscated : #! /bin/bash d2j=/work/installs/dex2jar-2.0 jdgui=/work/installs/jd-gui-1.4.0.jar apk_loc=/work/projects/my_app/build/app/outputs/app-release.apk mkdir -p /work/tmp/dex rm -rf /work/tmp/dex/* cd /work/tmp cp $apk_loc ./app-release.zip unzip app-release.zip -d dex

Proguard not able to obfuscate the jar through maven plugin

只谈情不闲聊 提交于 2019-12-11 16:46:32
问题 I am trying to obfuscate a jar build through maven, through proguard maven plugin. Build is also successful but when I decompile the same through JAD (Java decompiler), I am able to see all the java code. Thus it seems there is no obfuscation of the java source file. Please find below the pom.xml for the same : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

Error: A JNI error has occurred. Exception in thread “main” java.lang.VerifyError. Expected stackmap frame at this location

烂漫一生 提交于 2019-12-11 16:13:27
问题 I am trying to obfuscate a java application project which uses appium jars. When I create the jar using gradle build the jar works fine but when I obfuscate the jar and try to run it I get the following error. Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 77 Exception Details: Location: com/mobile/MobileTest/App.peformActions()V @0: new Reason: Expected stackmap frame

NullPointerException with proguard

被刻印的时光 ゝ 提交于 2019-12-11 15:38:09
问题 I'm using Proguard with my apps and I'm getting NullPointerExceptions sent to my Developer Console for random users. When I do a ReTrace, it seems to be an issue with the AdView I'm using. The confusing thing is, the error is happening in my Service which, obviously, doesn't use ads. Not sure if Proguard is doing something to the code or what. This is the de-obfuscated stack trace: java.lang.NullPointerException at com.google.ads.internal.AdWebView$1.a(Unknown Source) at com.app.base

How to Obfuscated Jar or AAR files

北慕城南 提交于 2019-12-11 12:40:25
问题 Can someone help me about, obfuscated or give me example to do this? I created an .aar file and .jar file and put the class of getter and setter that will give value if they access on it. but the thing in need to put the hidden values that someone will not see what is the value on it. package com.example.test; public class MyClass extends privateClass{ String testing; public MyClass() { this.testing = getStringExample(); } public String getTesting() { return testing; } public void setTesting

Raising obfuscated events with moq throws error

拥有回忆 提交于 2019-12-11 11:46:41
问题 We have using Moq for two month now. However there is a problem which can not solve somehow. In visual studio all tests succeeded just fine. On the build server there are several tests which failed. What they have in common is, that they use the "raise" method to throw an event. Our build server tests obfuscated what is good to find obfuscation errors. Every "normal" expectation like "Setup(something).Returns(something)" works. Only the raise event fails. the stacktrace looks like the

ProGuard: Problems using obfuscated JAR

巧了我就是萌 提交于 2019-12-11 11:37:50
问题 I have a JAR myapp-logic with classes, some of which are obfuscated and some non-obfuscated. I want to use myapp-logic in a web application called myapp-web . When I add the obfuscated version of myapp-logic to the dependencies of myapp-web , I get following error message (when I run mvn clean compile ): EntryPageController.java:[55,41] incompatible types found : java.lang.Object required: ru.altruix.ccp.logic.api.simfacade.SimulationFacade The code with the error looks like this: final

How to exclude specific jars from injars during obfuscation using proguard?

非 Y 不嫁゛ 提交于 2019-12-11 11:08:36
问题 I have many external jars inside my Application\WEB-INF\lib Consider abc.jar as one of my external jar, which i do not want to obfuscate So can i exclude as like below using filter in my proguard configuration ? -injars C:\Application\WEB-INF\lib(!abc.jar) If i do as above for injar option filter means, abc.jar is also getting obfuscated. Please suggest where i am going wrong ? How to avoid obfuscating it ? 回答1: You should use -injars to specify code that you want to be processed, and