Skip to content

Commit 187de79

Browse files
committed
last changes for new version ..
1 parent 8d9ab60 commit 187de79

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

5555
Or 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-
6670
Sample
6771
------
6872

0 commit comments

Comments
 (0)