Skip to content

Commit a61653f

Browse files
committed
Changed name TextSteganography to TextSteganography and added app icon
1 parent 7a08cd3 commit a61653f

27 files changed

+132
-39
lines changed

.idea/dictionaries/Lenovo.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
19.2 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.ayush.imagesteganographylibrary.Text.AsyncTaskCallback;
22

3-
import com.ayush.imagesteganographylibrary.Text.TextSteganography;
3+
import com.ayush.imagesteganographylibrary.Text.ImageSteganography;
44

55
/**
66
* This the callback interface for TextDecoding AsyncTask.
@@ -10,6 +10,6 @@ public interface TextDecodingCallback {
1010

1111
public void onStartTextEncoding();
1212

13-
public void onCompleteTextEncoding(TextSteganography result);
13+
public void onCompleteTextEncoding(ImageSteganography result);
1414

1515
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.ayush.imagesteganographylibrary.Text.AsyncTaskCallback;
22

3-
import com.ayush.imagesteganographylibrary.Text.TextSteganography;
3+
import com.ayush.imagesteganographylibrary.Text.ImageSteganography;
44

55
/**
66
* This the callback interface for TextEncoding AsyncTask.
@@ -10,6 +10,6 @@ public interface TextEncodingCallback {
1010

1111
public void onStartTextEncoding();
1212

13-
public void onCompleteTextEncoding(TextSteganography result);
13+
public void onCompleteTextEncoding(ImageSteganography result);
1414

1515
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
/**
1313
* This main class of the text steganography
1414
*/
15-
public class TextSteganography {
15+
public class ImageSteganography {
1616

1717
//Tag for Log
18-
private static String TAG = TextSteganography.class.getName();
18+
private static String TAG = ImageSteganography.class.getName();
1919

2020
String message;
2121
String secret_key;
@@ -27,13 +27,13 @@ public class TextSteganography {
2727
Boolean decoded;
2828
Boolean secretKeyWrong;
2929

30-
public TextSteganography() {
30+
public ImageSteganography() {
3131
this.encoded = false;
3232
this.decoded = false;
3333
this.secretKeyWrong = true;
3434
}
3535

36-
public TextSteganography(String message, String secret_key, Bitmap image) {
36+
public ImageSteganography(String message, String secret_key, Bitmap image) {
3737

3838
this.message = message;
3939
this.secret_key = convertKeyTo128bit(secret_key);
@@ -55,7 +55,7 @@ public TextSteganography(String message, String secret_key, Bitmap image) {
5555

5656
}
5757

58-
public TextSteganography(String secret_key, Bitmap image) {
58+
public ImageSteganography(String secret_key, Bitmap image) {
5959
this.secret_key = convertKeyTo128bit(secret_key);
6060
this.image = image;
6161

ImageSteganographyLibrary/src/main/java/com/ayush/imagesteganographylibrary/Text/TextDecoding.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* In this class all those method in EncodeDecode class are used to decode secret message in image.
1717
* All the tasks will run in background.
1818
*/
19-
public class TextDecoding extends AsyncTask<TextSteganography, Void, TextSteganography> {
19+
public class TextDecoding extends AsyncTask<ImageSteganography, Void, ImageSteganography> {
2020

2121
//Tag for Log
2222
private final static String TAG = TextDecoding.class.getName();
@@ -25,7 +25,7 @@ public class TextDecoding extends AsyncTask<TextSteganography, Void, TextStegano
2525

2626
private ProgressDialog progressDialog;
2727

28-
TextSteganography result;
28+
ImageSteganography result;
2929

3030
//Callback interface for AsyncTask
3131
TextDecodingCallback textDecodingCallback;
@@ -59,8 +59,8 @@ protected void onPreExecute() {
5959
}
6060

6161
@Override
62-
protected void onPostExecute(TextSteganography textSteganography) {
63-
super.onPostExecute(textSteganography);
62+
protected void onPostExecute(ImageSteganography imageSteganography) {
63+
super.onPostExecute(imageSteganography);
6464

6565
//dismiss progress dialog
6666
if(progressDialog != null)
@@ -71,18 +71,18 @@ protected void onPostExecute(TextSteganography textSteganography) {
7171
}
7272

7373
@Override
74-
protected TextSteganography doInBackground(TextSteganography... textSteganographies) {
74+
protected ImageSteganography doInBackground(ImageSteganography... imageSteganographies) {
7575

7676
//making result object
77-
result = new TextSteganography();;
77+
result = new ImageSteganography();;
7878

7979
//If it is not already decoded
80-
if (textSteganographies.length > 0){
80+
if (imageSteganographies.length > 0){
8181

82-
TextSteganography textSteganography = textSteganographies[0];
82+
ImageSteganography imageSteganography = imageSteganographies[0];
8383

8484
//getting bitmap image from file
85-
Bitmap bitmap = textSteganography.getImage();
85+
Bitmap bitmap = imageSteganography.getImage();
8686

8787
//return null if bitmap is null
8888
if (bitmap == null)
@@ -102,7 +102,7 @@ protected TextSteganography doInBackground(TextSteganography... textSteganograph
102102
}
103103

104104
//decrypting the encoded message
105-
String decrypted_message = textSteganography.decryptMessage(decoded_message, textSteganography.getSecret_key());
105+
String decrypted_message = imageSteganography.decryptMessage(decoded_message, imageSteganography.getSecret_key());
106106
Log.d(TAG, "Decrypted message : " + decrypted_message);
107107

108108
String decompressed_message = null;

ImageSteganographyLibrary/src/main/java/com/ayush/imagesteganographylibrary/Text/TextEncoding.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* In this class all those method in EncodeDecode class are used to encode secret message in image.
1717
* All the tasks will run in background.
1818
*/
19-
public class TextEncoding extends AsyncTask<TextSteganography, Integer, TextSteganography> {
19+
public class TextEncoding extends AsyncTask<ImageSteganography, Integer, ImageSteganography> {
2020

2121
//Tag for Log
2222
private static String TAG = TextEncoding.class.getName();
@@ -27,7 +27,7 @@ public class TextEncoding extends AsyncTask<TextSteganography, Integer, TextSteg
2727

2828
private ProgressDialog progressDialog;
2929

30-
TextSteganography result;
30+
ImageSteganography result;
3131

3232
//Callback interface for AsyncTask
3333
TextEncodingCallback callbackInterface;
@@ -55,7 +55,7 @@ protected void onPreExecute() {
5555
}
5656

5757
@Override
58-
protected void onPostExecute(TextSteganography textStegnography) {
58+
protected void onPostExecute(ImageSteganography textStegnography) {
5959
super.onPostExecute(textStegnography);
6060

6161
//dismiss progress dialog
@@ -78,18 +78,18 @@ protected void onProgressUpdate(Integer... values) {
7878
}
7979

8080
@Override
81-
protected TextSteganography doInBackground(TextSteganography... textSteganographies) {
81+
protected ImageSteganography doInBackground(ImageSteganography... imageSteganographies) {
8282

8383
//making result object
84-
result = new TextSteganography();
84+
result = new ImageSteganography();
8585

8686
Crypto encryption = null;
8787

8888
maximumProgress = 0;
8989

90-
if (textSteganographies.length > 0){
90+
if (imageSteganographies.length > 0){
9191

92-
TextSteganography textStegnography = textSteganographies[0];
92+
ImageSteganography textStegnography = imageSteganographies[0];
9393

9494
//getting image bitmap
9595
Bitmap bitmap = textStegnography.getImage();
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector
3+
android:height="108dp"
4+
android:width="108dp"
5+
android:viewportHeight="108"
6+
android:viewportWidth="108"
7+
xmlns:android="http://schemas.android.com/apk/res/android">
8+
<path android:fillColor="#26A69A"
9+
android:pathData="M0,0h108v108h-108z"/>
10+
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
11+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
12+
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
13+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
14+
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
15+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
16+
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
17+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
18+
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
19+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
20+
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
21+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
22+
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
23+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
24+
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
25+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
26+
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
27+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
28+
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
29+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
30+
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
31+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
32+
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
33+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
34+
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
35+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
36+
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
37+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
38+
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
39+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
40+
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
41+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
42+
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
43+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
44+
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
45+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
46+
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
47+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
48+
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
49+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
50+
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
51+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
52+
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
53+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
54+
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
55+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
56+
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
57+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
58+
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
59+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
60+
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
61+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
62+
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
63+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
64+
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
65+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
66+
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
67+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
68+
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
69+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
70+
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
71+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
72+
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
73+
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
74+
</vector>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>

0 commit comments

Comments
 (0)