File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,26 @@ The script will encrypt all string tags with `hidden="true"` as attribute.
4747
4848``` xml
4949<resources >
50- <string name =" hello" >hello world!</string >
51- <string name =" app_name" hidden = " true " >StringObfuscator</string >
50+ <string name =" hello" hidden = " true " >hello world!</string >
51+ <string name =" app_name" >StringObfuscator</string >
5252</resources >
5353```
5454
5555Or encrypt strings programmatically by doing:
5656
5757``` java
58- String encrypted = AndroidStringObfuscator . simulateString (some_string_var);
58+ String encrypted = AndroidStringObfuscator . encryptString (some_string_var);
5959```
6060
6161#### Decrypt
62+ From resources:
6263``` java
63- String decrypted = AndroidStringObfuscator . getString(R . string. app_name);
64+ String decrypted = AndroidStringObfuscator . getString(R . string. hello);
65+ ```
66+ Or from some encrypted variable:
67+ ``` java
68+ String decrypted = AndroidStringObfuscator . decryptString(encrypted_var);
6469```
65-
6670Sample
6771------
6872
You can’t perform that action at this time.
0 commit comments