|
1 | 1 | Android String Obfuscator |
2 | 2 | ========================= |
3 | 3 |
|
4 | | -Hide strings easyly with that lib (and script)! It uses AES/ECB/PKCS5Padding transformation to convert strings with your app's SHA1 fingerprint. |
| 4 | +Hide strings easily with that lib (and script)! It uses AES/ECB/PKCS5Padding transformation to convert strings with your app's SHA1 fingerprint. |
5 | 5 |
|
6 | 6 | Installation |
7 | 7 | ------------ |
@@ -37,9 +37,11 @@ android.applicationVariants.all{ variant -> |
37 | 37 | ] |
38 | 38 | } |
39 | 39 | def stringsFileObfus = file("string_obfuscation/strings.xml") |
40 | | - stringsFile.write(stringsFileObfus.getText('UTF-8')) |
41 | | - stringsFileObfus.delete() |
42 | | - } else logger.error("strings.xml file couldn't be found: " + path) |
| 40 | + if (stringsFileObfus.isFile()) { |
| 41 | + stringsFile.write(stringsFileObfus.getText('UTF-8')) |
| 42 | + stringsFileObfus.delete() |
| 43 | + } else logger.error("string_obfuscation/strings.xml not found") |
| 44 | + } else logger.error("values.xml file couldn't be found: " + path) |
43 | 45 | } |
44 | 46 | } |
45 | 47 | ``` |
@@ -76,12 +78,11 @@ Gradle Console Output Example |
76 | 78 | :sample:initStringObfuscator |
77 | 79 | :sample:obfuscator-script - ----------------------------------------------------------------------------- |
78 | 80 | :sample:obfuscator-script - debug variant |
79 | | -:sample:obfuscator-script - SHA1 fingerprint: E1:28:0C:3E:65:96:2E:21:E9:98:2B:58:80:9A:25:3A:F6:88:7D:FF |
| 81 | +:sample:obfuscator-script - SHA1 fingerprint: E1:28:0C:3E:65:91:2E:21:E9:98:2B:58:80:9A:25:3A:F6:88:7D:FF |
80 | 82 | :sample:obfuscator-script - looking for string file on -> /Users/efrainespada/Desktop/AndroidStringObfuscator/sample/build/intermediates/res/merged/debug/values/values.xml |
81 | 83 | :sample:obfuscator-script - [StringObfuscato..] - [7CFBFBEE31ABA92..] |
82 | 84 | :sample:obfuscator-script - ----------------------------------------------------------------------------- |
83 | | -:sample:obfuscator-script - v0.4 --- bugs or improvements to https://github.com/efraespada/AndroidStringObfuscator/issues |
84 | | -:sample:obfuscator-script - ----------------------------------------------------------------------------- |
| 85 | +:sample:obfuscator-script - v0.4 |
85 | 86 | :sample:processDebugManifest UP-TO-DATE |
86 | 87 | ... |
87 | 88 | ``` |
|
0 commit comments