Skip to content

Commit 40da955

Browse files
committed
readme
1 parent 4cce319 commit 40da955

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ apply plugin: com.efraespada.stringobfuscatorplugin.StringObfuscatorPlugin
1414
buildscript {
1515
1616
ext {
17-
aso_sop_version = '0.5.0'
17+
stringcare_version = '0.1'
1818
}
1919
2020
repositories {
2121
jcenter()
2222
}
2323
2424
dependencies {
25-
classpath "com.efraespada:stringobfuscatorplugin:$aso_sop_version"
25+
classpath "com.efraespada:stringcare:androidplugin:$stringcare_version"
2626
}
2727
2828
}
@@ -36,15 +36,15 @@ repositories {
3636
}
3737
3838
dependencies {
39-
implementation "efraespada:androidstringobfuscator:$aso_sop_version"
39+
implementation "com.efraespada:stringcare:androidlibrary:$stringcare_version"
4040
}
4141
```
4242

4343
Setup
4444
-----
4545
Initialize the library:
4646
```java
47-
AndroidStringObfuscator.init(getApplicationContext());
47+
SC.init(getApplicationContext());
4848
```
4949

5050

@@ -61,38 +61,38 @@ The script will encrypt all string tags with `hidden="true"` as attribute.
6161
Or encrypt strings programmatically by doing:
6262

6363
```java
64-
String encrypted = AndroidStringObfuscator.encryptString(some_string_var);
64+
String encrypted = SC.encryptString(some_string_var);
6565
```
6666

6767
#### Decrypt
6868
From resources:
6969
```java
70-
String decrypted = AndroidStringObfuscator.getString(R.string.hello);
70+
String decrypted = SC.getString(R.string.hello);
7171
```
7272
Or from encrypted variables:
7373
```java
74-
String decrypted = AndroidStringObfuscator.decryptString(encrypted_var);
74+
String decrypted = SC.decryptString(encrypted_var);
7575
```
7676
Sample
7777
------
7878

7979
```java
80-
AndroidStringObfuscator.init(getApplicationContext());
80+
SC.init(getApplicationContext());
8181

8282
// getting encrypted string resources
8383
int stringId = R.string.hello;
8484

8585
String message = getString(stringId);
8686
message += " is ";
87-
message += AndroidStringObfuscator.getString(stringId);
87+
message += SC.getString(stringId);
8888

8989
// and secret
9090
String mySecret = "lalilulelo";
9191

9292
message += "\n\nFor Metal Gear lovers:\n\n\"Snake, the password is " +
93-
AndroidStringObfuscator.encryptString(mySecret) +
93+
SC.encryptString(mySecret) +
9494
"\n\n.. or " +
95-
AndroidStringObfuscator.decryptString(AndroidStringObfuscator.encryptString(mySecret)) +
95+
SC.decryptString(SC.encryptString(mySecret)) +
9696
"\"";
9797

9898
((TextView) findViewById(R.id.example)).setText(message);
@@ -108,7 +108,7 @@ By default the plugin will encrypt every `strings.xml` file inside `src/main`fol
108108
// root_folder/build.gradle
109109
apply plugin: com.efraespada.stringobfuscatorplugin.StringObfuscatorPlugin
110110
111-
stringobfuscator {
111+
stringcare {
112112
113113
modules {
114114

0 commit comments

Comments
 (0)