obfuscation

How to randomize ProGuard dictionaries on each build?

倾然丶 夕夏残阳落幕 提交于 2021-02-19 02:24:07
问题 I found an article which introduces the concept of randomizing the dictionary entries instead of using the standard "a, b, c, ..." for class names and variables when obfuscating. He explains that tasks can be run in gradle on build to generate a randomized text file which can replace the one provided by default: tasks.whenTaskAdded { currentTask -> //Android Gradle plugin may change this task name in the future def prefix = 'transformClassesAndResourcesWithProguardFor' if (currentTask.name

CSS class names in Atlassian's Jira are obfuscated [closed]

可紊 提交于 2021-02-11 14:36:34
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago . Improve this question I noticed in Jira, they have obfuscated the CSS classes, so they look odd and they are different on every page refresh: <div class="sc-dYaWWc dJrjAK"> <div class="sc-iLVaha hfGHeD"> <div class="sc-geAxOV krrXnm"> <div class="sc-bJT2cE bPFEwh"> <div class=

exclude packages from proguard

為{幸葍}努か 提交于 2021-02-07 13:22:50
问题 How can I inlcude some of the packages after I excluded the parent package in proguard.cfg: Ex: -keep com.myapp.** { *; } I want proguard to obfuscate com.myapp.data.** { *; } 回答1: You can use ProGuard-style regular expressions for the class name: -keep class !com.myapp.data.**,com.myapp.** { *; } 来源: https://stackoverflow.com/questions/18537003/exclude-packages-from-proguard

Dealing with R8 + JvmStatic Annotation + Lambda in public API for Android Library written in Kotlin

ぃ、小莉子 提交于 2021-02-07 05:52:08
问题 First of all, please note that I'm not expecting why do you want to obfuscate library comments. This is a genuine problem I'm asking about. I have been having an issue dealing with R8/obfuscation with an Android library written in Kotlin. I've a public API method which is annotated with @JvmStatic and that method takes a Lambda as parameter. For example, take a look at code below, typealias MyLambdaCallback = (String, Map<String, Any>) -> Unit @Keep object MyApi { private var callback:

Dealing with R8 + JvmStatic Annotation + Lambda in public API for Android Library written in Kotlin

谁说胖子不能爱 提交于 2021-02-07 05:51:01
问题 First of all, please note that I'm not expecting why do you want to obfuscate library comments. This is a genuine problem I'm asking about. I have been having an issue dealing with R8/obfuscation with an Android library written in Kotlin. I've a public API method which is annotated with @JvmStatic and that method takes a Lambda as parameter. For example, take a look at code below, typealias MyLambdaCallback = (String, Map<String, Any>) -> Unit @Keep object MyApi { private var callback:

Obfuscating clojure uberjars with ProGuard

二次信任 提交于 2021-02-05 18:53:28
问题 I was wondering if anybody has any experience with obfuscating their leiningen compiled uberjars with proguard. I've tried my best to look for a solution on Google but couldn't really find an answer. I'm wondering if this is at all possible. I've been trying to obfuscate a default lein project. Here's the core.clj file: (ns proguard.core (:gen-class)) (defn -main "I don't do a whole lot." [& args] (println "Hello, World!")) the project file: (defproject proguard "0.1.0-SNAPSHOT" :description

Protecting Java code of a game [closed]

旧巷老猫 提交于 2021-02-05 10:55:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago . Improve this question Let's assume that after a few years of work I would have a 3D game ready, that can be downloaded by millions of people worldwide, it would be a game running on a client-server model. As far as I understand anyone can look at other people's source code if they

Processing the same .NET assembly with two different obfuscators [closed]

江枫思渺然 提交于 2021-02-05 07:44:40
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Improve this question Processing the same .NET assembly (feeding the output of one into the other as input) with two different obfuscators increases the chance to make decompilation impossible? Thanks. 回答1: Decompilation is never impossible. It may though quite easily get to

Making css-loader class names hashing work for html as strings

╄→гoц情女王★ 提交于 2021-01-29 08:55:59
问题 There are some HTML chunks as strings in my JS file. For example: `<span class="${currentIndex === index ? 'right' : ''} ${get(item, 'observed') === true ? 'observed' : ''}" data-index="${index}" data-item-id="${get(item, 'id')}"> <b style="animation-duration:${get(item, 'length') === '' ? '200' : get(item, 'length')}s"></b> </span>` The SCSS files are also imported in the JS file and the bundling works perfectly. But, when I try to enable the "modules: true" option in the css-loader, the

C API for a Swift framework – always exposed?

限于喜欢 提交于 2021-01-29 05:44:45
问题 I am building a iOS SDK in Swift 5.3, and I define all classes (except the documented API) as internal (i.e. using the default access wherever I cannot use private ). The SDK is distributed as a cocoapod dynamic framework. So far so good. My SDK has a C component; these functions are used internally for some calculation, and are not expected to be exposed to the app developers. These are exposed to Swift via the unmbrella header, and my Swift code works with them as expected. Unfortunately,