File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ android.applicationVariants.all{ variant ->
4545```
4646
4747
48- Get encrypted strings
49- ---------------------
50- You don't need to do anything. The script will encrypt all string tags with ` hidden="true" ` as attribute.
48+ Encrypt Strings
49+ ---------------
50+ The script will encrypt all string tags with ` hidden="true" ` as attribute.
5151
5252``` xml
5353<resources >
@@ -56,9 +56,14 @@ You don't need to do anything. The script will encrypt all string tags with `hid
5656</resources >
5757```
5858
59+ You can encrypt strings programmatically by doing:
5960
60- Get decrypted strings
61- ---------------------
61+ ``` java
62+ String encrypted = AndroidStringObfuscator . simulateString(context, some_string);
63+ ```
64+
65+ Decrypt Strings
66+ ---------------
6267``` java
6368String decrypted = AndroidStringObfuscator . getString(context, R . string. app_name);
6469```
You can’t perform that action at this time.
0 commit comments