我们应该如何编码测试stegnography程序..请帮帮我.. !! [英] how should we code for testing the stegnography programe.. please help me..!!

查看:57
本文介绍了我们应该如何编码测试stegnography程序..请帮帮我.. !!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我编写一个代码来测试控制台应用程序中的Stenography方法..

Please help me to write a code for testing the methods for Stenography in Console application..

推荐答案

测试方法非常简单,至少从一开始:

1)设置一组图像,并将样本文件隐藏

2)循环显示每个图像,并隐藏其中的每个样本文件,将它们保存到新的图像文件。

3)然后遍历每个保存的图像文件,并提取隐藏的数据。将它与你首先隐藏的文件进行比较。



如果你可以成功地匹配每个文件,逐个字节地从每个图像,那么你有一个合理的认为代码有效。如果没有,那么回到开发阶段!



如果它们没问题,那么你需要直观地查看输出文件,看看是否可以检测到任何篡改 如果你不能,那么你可能就在那里。



值得使用各种尺寸的图像和一系列不同类型的输入 - 包括所有空值和所有0xFF字节,以及基于二进制和文本的数据。
The testing methods are pretty simple, at least to start with:
1) Set up a set of images, and sample files to "hide"
2) Loop though each image, and "hide" each sample file in it, saving them to new image files.
3) Then loop through each of the saved image files, and "extract" the hidden data. Compare it to the files your hid in the first place.

If you can successfully match each file, byte-for-byte from each image, then you have a reasonable idea that the code works. If not, then back to development with you!

If they are fine, then you need to look at the output files visually and see if you can detect any "tampering" if you can't, then you're probably there.

It's worth using a range of images, in various sizes, and a range of inputs of different types - including all nulls, and all 0xFF bytes, as well as binary and text based data.


这篇关于我们应该如何编码测试stegnography程序..请帮帮我.. !!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆