How to do Image Steganography on android? -


Hi, I am creating a project and for some part of this I want to convert a message into sign language (which is in user type),

In an image that the user is on his phone, though I am new to this and I have struggled to find resources on Steganography for Android. So my question is that the basic principles / methods What are you What is to encode the string in an image? Thanks!

Almost working, but its encoding is correct, when I try to convert a character to a value, if its symbol is 0 or it is converted to -1 is.

Code: -

Encoding: -

  Public Zero Encoded Img (ImageView ImageEncipcript) {String Test = "Hello"; Bitmap BMAP; BitmapDrawable BMAPD = (bitmapdraubable) imgencript.getdrawable (); Bmap = bmapD.getBitmap (); Bitmap Operation = Bitmap.CreateBitamap (BMAP .getWidth (), BMAPGetHight (), BMAPGet Config ()); For {int i = 0; I & lt; bmap.getWidth (); i ++) {{int j = 0; j & lt; bmap.getHeight (); J ++) {int p = bmap .getPixel (i, j); Int r = Color.red (p); Int g = Color.green (p); Int b = Color Blue (p); Int alpha = color. Lafa (P); If (i & lt; 1 & amp; amp; amp; & amp; amp; amp; & amp; j & lt; 5) {int value = Character.getNumericValue (test.charAt (j)); Alpha = value; Logs. W ("myApp", "Code is executed"); Operation.setPixel (i, j, color.argb (alpha, r, g, b)); }}} ImgEncrypt.setImageBitmap (operation); Savefile = Save New Save (); Saving file Saving picture (this, operating); }  

decoding: -

  public zero decode img (imageview) {string message = ""; TextView hidden message = (TextView) findViewById (R.id.hiddenMsg); Bitmap BMAP; BitmapDrawable BMAPD = (bitmapdraubable) imgencript.getdrawable (); Bmap = bmapD.getBitmap (); Bitmap Operation = Bitmap.CreateBitamap (BMAP .getWidth (), BMAPGetHight (), BMAPGet Config ()); For {int i = 0; I & lt; bmap.getWidth (); i ++) {{int j = 0; j & lt; bmap.getHeight (); J ++) {int p = bmap .getPixel (i, j); Int r = Color.red (p); Int g = Color.green (p); Int b = Color Blue (p); Int alpha = color. Lafa (P); If (i & lt; 1 & amp; amp; amp; j & lt; 5) {int value = alpha; Four C = (four) value; Message + = C; Logs. W ("myApp", "Code is executed"); }}} HiddenMessage.setText (message); }}  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -