steganography

PHP- 2 bytes into 1 array

无人久伴 提交于 2019-12-11 15:32:59
问题 I have printed out this binary which is 8 per line but yet to be stored in an array. <?php // get contents of a file into a string $filename = "rock.wav"; $handle = fopen($filename, "rb"); $contents = fread($handle, filesize($filename)); for($i = 0; $i < strlen($contents); $i++) { $char = $contents[$i]; $str = ord ($char); echo str_pad(decbin($str), 8,"0",STR_PAD_LEFT)."<br/>"; } ?> The outcome is this: 01010010 01001001 01000110 01000110 00000010 it actually has more likely ten thousand line

I am reading an image and changing it. But the changes are not being saved

ぐ巨炮叔叔 提交于 2019-12-11 13:54:01
问题 I am trying to implement a steganography. I am reading an image "a.jpeg" and inserting a byte in it by changing its consecutive 7 bytes at the least significant bit starting from offset 50. This is done successfully as when I print the bytes the last bits are changed accordingly. Then I saved it as "ao.jpeg". But when I am reading the byte values from 50, they are not the same as the once i saved. here's my code public static void main(String[] args) throws IOException { BufferedImage

C# byte[] to List<bool>

﹥>﹥吖頭↗ 提交于 2019-12-11 08:55:27
问题 From bool[] to byte[]: Convert bool[] to byte[] But I need to convert a byte[] to a List where the first item in the list is the LSB. I tried the code below but when converting to bytes and back to bools again I have two totally different results...: public List<bool> Bits = new List<bool>(); public ToBools(byte[] values) { foreach (byte aByte in values) { for (int i = 0; i < 7; i++) { Bits.Add(aByte.GetBit(i)); } } } public static bool GetBit(this byte b, int index) { if (b == 0) return

Bitmap pixel values differ after setPixel() and getPixel() on same pixel

房东的猫 提交于 2019-12-11 01:37:28
问题 I'm developing a steganography app for a class project which allows a user to encode a secret message image with in another image. I use Bitmap.getPixel(x,y) to retrieve pixel information after modifying the pixel integer value to contain the message value. I then used Bitmap.setPixel(x,y) to place the modified pixel in the bitmap. After decoding the image and retrieving the hidden message I've noticed some pixels were discolored. I've found that certain pixels do not contain the correct

Does there exist a digital image steganography algorithm which would be resistant to image manipulation?

空扰寡人 提交于 2019-12-10 17:56:25
问题 I'm wondering - is there a steganography solution for digital images which is resistant to image manipulations? With "manipulations" I mean the most standard operations - recompressing JPEGs (or even changing file formats entirely), cropping and scaling. The application of this method would naturally be for image copyright protection. I fully understand that the more image is manipulated the less are the chances that the steganographic watermark is intact, but at least some degree of

Android bitmap.setPixel(x,y,color) is setting passed in value

北慕城南 提交于 2019-12-10 11:45:43
问题 Create a bitmap using Bitmap.create(25, 25, Config.ARGB_8888) Setting a pixel with an alpha value less than or equal to 0xA9 results in the pixel not being set with what's passed in. I read another stack overflow question saying to setHasAlpha(true), which I did in my test -- but that still didn't fix the issue. Here's my android test case showing my issue: public void testSettingBitmaps() { Bitmap bitmap = Bitmap.createBitmap(25, 25, Config.ARGB_8888); bitmap.setHasAlpha(true); int color =

Image steganography Using C#

若如初见. 提交于 2019-12-10 00:34:38
问题 I want to add some text such as "Manula", to the image using Stenography and want to save it. And also i want to retrieve it again. I want to made this project using C#. Can anyone send me the C# code for this programm. Thanks.. 回答1: Have a look at: http://www.codeproject.com/KB/recipes/Image-Steganography.aspx 回答2: What You Need Is Here.......... http://www.programmer2programmer.net/live_projects/project_7/steganography.aspx 来源: https://stackoverflow.com/questions/1998531/image-steganography

hide tar file in png

我只是一个虾纸丫 提交于 2019-12-08 11:59:11
问题 Can I simply embed tar file inside png image? I`m tried cat file.tar image.png > secret.png, but this not working for me. does have anybody working example? it would be preferable in ruby or python 回答1: For simplicity's sake, you can use the stepic library. It will do what you want out of the box: stepic --encode --image-in=plain.png --data-in=data.tar --out=secret.png to decode: stepic --decode --image-in=secret.png --out=data.tar You can download and install from the stepic webpage I doubt

Execute EXE as JPG

落爺英雄遲暮 提交于 2019-12-08 04:26:47
问题 I've made a simple program in Visual Basic, then gave it JPG extension and set it up to be run from shortcut with command line cmd.exe /c my_program.jpg , according to this and this guides. Everything is fine so far, but I'd like to run my program from an image without command prompt opening. I know that such thing is possible, because I can run programs from PDF, RTF or Word documents because most of PDF files have JS API features, and Microsoft Office documents have VBA and macro support.

python - Reading all kinds of files in different encodings

隐身守侯 提交于 2019-12-07 18:44:01
问题 I built a Python steganographer that hides UTF-8 text in images and it works fine for it. I was wondering if I could encode complete files in images. For this, the program needs to read all kinds of files. The problem is that not all files are encoded with UTF-8 and therefore, you have to read them with: file = open('somefile.docx', encoding='utf-8', errors='surrogateescape') and if you copy it to a new file and read them then it says that the files are not decipherable. I need a way to read