obfuscation

Java Code Obfuscate

别来无恙 提交于 2019-12-09 23:25:51
问题 What is a good free java code Obfuscate program? I have heard of ProGuard but all I get is class not found when I run my applet so uhm... yeah -- anyone? 回答1: ProGuard is a good one. ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it

Protecting Android apk to prevent decompilation, network sniffing etc

只谈情不闲聊 提交于 2019-12-09 22:09:38
问题 Is there a way to protect Android apk file so that the source code cannot be regenerated? Also, there are a number of network sniffers that allow HTTP monitoring, is there a way to bypass these such that the incoming/outgoing network traffic could not be monitored? I have read that code obfuscation, to some extent, is possible using SourceForge's Proguard(Reference). What are other alternatives that I can look into? Please advise. Thanks. 回答1: You can use an obfuscator to obfuscate the object

Android code obfuscation with ProGuard…how does one know it's been obfuscated?

99封情书 提交于 2019-12-09 15:49:03
问题 I have an Android project that I recently published to the market after running it through obfuscation with ProGuard. The project exported without any complications, but how do I know it's been obfuscated? Is there anything I could do to verify that obfuscation was successful? 回答1: Try to reverse engineer your own application. See what you can read in the code. Use the following questions: decompiling DEX into Java sourcecode http://www.taranfx.com/decompile-reverse-engineer-android-apk 回答2:

Obfuscating Strings with ASCII and base 128

走远了吗. 提交于 2019-12-09 13:48:13
问题 Suppose a string is a number system where each thing, it can be a char, DEL or any ASCII thing, has a corresponding number according to this ASCII table. How can you convert arbitrary string of the property to number in Python? An example #car = 35*128**3+99*128**2+97*128**1+114*128**0=75034866 回答1: Try this: total = 0 for c in "#car": total <<= 7 total += ord(c) print total Result: 75034866 To get back the original string: result = [] while total: result.append(chr(total % 128)) total >>= 7

Obfuscate javascript properties?

妖精的绣舞 提交于 2019-12-09 12:30:13
问题 I've recently tested UglifyJS and YUI Compressor and noticed something odd. Both minifiers don't seem to change the names of object properties, only the names of variables and functions. for instance if I have the following code: var objName = {first:2, second:4}; alert(objName.first + " " + objName.second); the names first and second remain unchanged in the minified version. Why is that? 回答1: It's because it doesn't know where the object is going to be used. It could be used externally by

How to protect an API key in a .NET application

吃可爱长大的小学妹 提交于 2019-12-08 16:03:39
问题 My application hits a number of web services, such as Twitter and Flickr. It uses API keys from those services, and I'd like to obfuscate them in my binaries. (I'm not really worried about piracy or anything, I just need to keep these keys secret.) What's the best way to go about it? If I store them as const SecureString, does that keep them out of memory? The MSDN description says the text is "deleted from computer memory when no longer needed", but isn't a const always in memory? Will

C++ swap two numbers using 11 chars of code [closed]

ε祈祈猫儿з 提交于 2019-12-08 13:06:29
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 7 years ago . My friend sent me a exercise that he can't do: (C++) int main() { unsigned int x = 0xB0FF14a5; unsigned int y = 0x7340c00e; // enter code here if(x==0x7340c00e && y==0xB0FF14a5) victory(); return 0; } The main goal is to run victory() function. Assumptions: -max 11 chars -You can't use: "main", "victory", "asm",

Keep a method from obfuscate in android

十年热恋 提交于 2019-12-08 10:02:34
问题 I want to keep a method from obfuscating and rename. package test.app.my; class my { public void done() { } } 回答1: During build, obfuscation is handled by the build step that invokes Proguard, so to keep a method you add to your Proguard configuration file: -keep class test.app.my { void done(); } The configuration syntax supports wildcards and is quite powerful - take a look at some examples from the Proguard manual. 来源: https://stackoverflow.com/questions/31505353/keep-a-method-from

Dotfuscator : Error after obfuscation

时光怂恿深爱的人放手 提交于 2019-12-08 07:21:13
问题 I am using dotfuscator to obfuscate my vb.net application(myapp.exe). But i am getting error while running the obfuscated file. Below is the error when i open the exe which is obfuscated. "The settings property 'Import' was not found. ImportSetting" My application uses .config(myapp.exe.config) file which has setting like below <userSettings> <myapp.My.MySettings> <setting name="Import" serializeAs="String"> <value>True</value> </setting> </myapp.My.MySettings> </userSettings> If i don't

Is obfuscation the best answer [duplicate]

半世苍凉 提交于 2019-12-08 05:59:39
问题 This question already has answers here : Closed 10 years ago . Possible Duplicates: How effective is obfuscation? Protect ASP.NET Source code (Why) should I use obfuscation? Is obfuscation the best answer for protecting our code ? *Specially in Web Projects when you want to deliver your web projects as libraries of code to your customer ( the person who ordered ) * Edited At first my priority is Server-Side Code and second Client-Side but the main goal is when you want to deliver a complete