Questions tagged [obfuscation]

Obfuscation is the process by which the code is altered so that a developer finds it much harder to understand clearly what the intended program does or how it operates. The larger the program the greater the obfuscation, as code becomes intertwined linking different segments through out the program.

While it may be possible to use a disassembler to figure out how certain aspects within a program function, it requires knowledge of assembly. Assembly language by its nature is non-trivial.

Another way to increase obfuscation is to use packers.

2987 questions
28
votes
13 answers

How to change the proguard mapping file name in gradle for Android project

I have android project based on gradle and I want to change mapping.txt file name after it's generated for my build. How can it be done? upd How it can be done in build.gradle? Since I have access there to my flavors and other stiff, I would like to…
olegflo
  • 1,105
  • 3
  • 17
  • 26
28
votes
12 answers

Does e-mail obfuscation really make automatic harvesting harder?

Many users and forum programs in attempt to make automatic e-mail address harversting harder conseal them via obfuscation - @ is replaced with "at" and . is replaced with "dot", so team@stackoverflow.com now becomes team at stackoverflow dot…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
27
votes
3 answers

Android ant build: proguard can't find referenced method in class ViewConfigurationCompatFroyo

I'm very short on time here, so I truly hope someone here has a clue how to fix these: [proguard] Warning: android.support.v4.view.ViewConfigurationCompatFroyo: can't find referenced method 'int getScaledPagingTouchSlop()' in class…
Ophidian
  • 584
  • 8
  • 16
27
votes
3 answers

How to deobfuscate an Android stacktrace using mapping file

I got a stacktrace from the crashreporting system and it is obfuscated, like ... Failed resolution of: Lru/test/c/b/a; ... I have a mapping file. How to deobfuscate this stacktrace using mapping.txt?
Maksim Turaev
  • 4,115
  • 1
  • 29
  • 42
27
votes
5 answers

Interview Hello World explanation

This classic ioccc entry is a Hello World program written in C. Can anyone please provide an explanation of how it works? Original code (syntax highlighting intentionally missing): int i;main(){for(;i["]
JoshD
  • 12,490
  • 3
  • 42
  • 53
27
votes
9 answers

Is using an obfuscator enough to secure my JavaScript code?

I'm working on building a development tool that is written in JavaScript. This will not be an open source project and will be sold (hopefully) as a commercial product. I'm looking for the best way to protect my investment. Is using an obfuscator…
Markus
  • 1,539
  • 1
  • 18
  • 22
27
votes
1 answer

What is the DynamicProxyGenAssembly2 assembly?

I use Moq for my unit tests. To test internal interfaces I have to declare the InternalsVisibleTo attribute to the DynamicProxyGenAssembly2 assembly. We run our tests obfuscated, which is useful because we could found some problems with obfuscation…
Yggdrasil
  • 1,377
  • 2
  • 13
  • 27
26
votes
7 answers

Can you Distribute a Ruby on Rails Application without Source?

I'm wondering if it's possible to distribute a RoR app for production use without source code? I've seen this post on SO, but my situation is a little different. This would be an app administered by people with some clue, so I'm cool with still…
Dan Harper
  • 1,130
  • 10
  • 22
26
votes
3 answers

How to encrypt or obfuscate objective c code?

Possible Duplicate: iPhone/iPad App Code Obfuscation - Is it Possible? Worth it? I have spent a lot of time on this and I couldn't able to find a perfect answer. That's why I decided to put my question here. I have an iPhone application and want…
Johny_568
  • 365
  • 1
  • 3
  • 9
26
votes
3 answers

How can I exclude external .jar from obfuscation by Proguard (Android project)?

When I export android project with proguard.cfg, all referenced .jar files are obfuscated as well. How can I exclude some of that .jars from obfuscation?
alex2k8
  • 42,496
  • 57
  • 170
  • 221
26
votes
10 answers

Should I be worried about obfuscating my .NET code?

I'm sure many readers on SO have used Lutz Roeder's .NET reflector to decompile their .NET code. I was amazed just how accurately our source code could be recontructed from our compiled assemblies. I'd be interested in hearing how many of you use…
John Sibly
  • 22,782
  • 7
  • 63
  • 80
25
votes
7 answers

How to minify/obfuscate a bash script

Of course a bash file cannot be truly obfuscated and will always be readable. And I don't want to wrap them in some binary package. And renaming local variables wouldn't be worth the trouble. But is there a reliable simple bash obfuscator or…
Christian
  • 2,903
  • 4
  • 31
  • 34
25
votes
8 answers

How int + string becomes string?

I came across a strange way to implement ToString() and I am wondering how it works: public string tostr(int n) { string s = ""; foreach (char c in n-- + "") { //<------HOW IS THIS POSSIBLE ? s = s + c; } return s; } Is…
Nabil Lamriben
  • 292
  • 3
  • 5
25
votes
13 answers

Obfuscating C-based binaries to avoid decompilation

Is there some way to obfuscate C-based executables or libraries to prevent decompilation?
Jay
  • 24,173
  • 25
  • 93
  • 141
24
votes
7 answers

How to obfuscate string constants?

We have an application which contains sensitive information and I'm trying my best to secure it. The sensitive information includes: The main algorithm The keys for an encryption/decryption algorithm I've been looking at Obfuscating the code but…
cusimar9
  • 5,185
  • 4
  • 24
  • 30