steganography

Bitmap color change while compressing to png

僤鯓⒐⒋嵵緔 提交于 2019-12-19 10:26:06
问题 I'm currently working on a steganogrpahy android app as a class project. I've created an object that will encode an image with in another image and return an encoded bitmap. This code is run in a seprate thread. new Thread(new Runnable() { public void run() { Bitmap encoded_image = null; Encryptor encryptor = new Encryptor(); encoded_image = encryptor.encode_image_in_image( image_location,message_image_location); } }).start(); After encoding the bitmap I was passing the bitmap to a file

Compose synthetic English phrase that would contain 160 bits of recoverable information

主宰稳场 提交于 2019-12-18 12:28:14
问题 I have 160 bits of random data. Just for fun, I want to generate pseudo-English phrase to "store" this information in. I want to be able to recover this information from the phrase. Note: This is not a security question, I don't care if someone else will be able to recover the information or even detect that it is there or not. Criteria for better phrases, from most important to the least: Short Unique Natural-looking The current approach, suggested here: Take three lists of 1024 nouns, verbs

Hiding message in JPG image

亡梦爱人 提交于 2019-12-17 19:31:07
问题 I am trying to hide a in an image it's working fine with .bmp & .png but when I write image as JPG and try to retrieve the hidden message it is not working. My procedure, first read an image in format ( bmp , gif , jpg , png ) write message to hide and save it so that we can again read it and extract the message. When i save it with bmp or png it works fine but when saving with jpg and try to extract the message it doesn't work. ImageIO.write(bimg, "png", outputfile);//working ImageIO.write

Getting/Setting a bit value from image

天涯浪子 提交于 2019-12-14 03:07:22
问题 Question is based on this site. Could someone explain the meaning of these lines: private int getBitValue(int n, int location) { int v = n & (int) Math.round(Math.pow(2, location)); return v==0?0:1; } and private int setBitValue(int n, int location, int bit) { int toggle = (int) Math.pow(2, location), bv = getBitValue(n, location); if(bv == bit) return n; if(bv == 0 && bit == 1) n |= toggle; else if(bv == 1 && bit == 0) n ^= toggle; return n; } 回答1: int v = n & (int) Math.round(Math.pow(2,

Steganography in image

南笙酒味 提交于 2019-12-13 09:50:07
问题 So far, I have opened the image in a hex editor and looked at the bytes. However, for the life of me I cannot identify the sound. I have spent days over this. I even tried opening the file (as 'Raw Data') in Audacity and playing it. Nothing but 'noise'. Tried to create a histogram/frequency analysis but nothing. Any help would be appreciated. 回答1: Steganography usually works by hiding a second image or some data in the lower bits of another image. These values becomes very insignificant over

android steganography

a 夏天 提交于 2019-12-13 05:15:56
问题 I'm doing steganography on Android. My code is as follows: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.src); picw = mBitmap.getWidth(); pich = mBitmap.getHeight(); pix= new int[picw * pich]; mBitmap.getPixels(pix, 0, picw, 0, 0, picw, pich); try { FileOutputStream fos = super.openFileOutput("dest.png", MODE_WORLD_READABLE); mBitmap.compress(CompressFormat.PNG, 100, fos); fos.flush();

Reading encrypted bytes from an image in java

旧街凉风 提交于 2019-12-12 08:19:02
问题 I have to embed text in an encrypted image(Stegnography). I googled and found codes for embedding text in an image. But I have to encrypt image at first and embed text in this encrypted image. My tries are as follows. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tbn; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Transparency; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt

ValueError: invalid literal for int() with base 10: ' ' when it worked before

和自甴很熟 提交于 2019-12-12 06:58:41
问题 I'm having some issues with my program, basically what I'm trying to do is Stenography, insert an image into another image and then extract the secret image. My program is able to insert just fine, but extracting it I get this error. It was working fine the other day, I was able to read and write perfectly. I am also using the same BMP images as the other day as well. Anyone know the issue? I didn't change any of the code from it's working state, I even uploaded to github to make sure that

Put invisible message in four part of image by using Raster

故事扮演 提交于 2019-12-11 16:47:10
问题 I found a tutorial from this website Steganography (it also include the code), and i want to put the four message into four difference part of image as i drew below link Four parties of image, but i am not sure how to exactly to put message to four of section. This is one part of the code i modified by using raster below private byte[] get_byte_data(BufferedImage image) { WritableRaster raster = image.getRaster(); int imageHeight=image.getHeight()/2; System.out.println("ImageHeight: "

Read RGB image into binary and display it as RGB in Matlab

我的未来我决定 提交于 2019-12-11 16:43:56
问题 This question is based on the one asked earlier Understanding image steganography by LSB substitution method In order to make the code efficient and reduce the mean square error (MSE) the suggestion was: "read the file as is with and convert it to bits with de2bi(fread(fopen(filename)), 8) . Embed these bits to your cover image with the minimum k factor required, probably 1 or 2. When you extract your secret, you'll be able to reconstruct the original file." This is what I have been trying