Skip to content

Commit 4d4bb45

Browse files
committed
readme..
1 parent bb152b2 commit 4d4bb45

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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
6368
String decrypted = AndroidStringObfuscator.getString(context, R.string.app_name);
6469
```

0 commit comments

Comments
 (0)